diff --git a/packages/server/src/services/Subscription/LemonResumeSubscription.ts b/packages/server/src/services/Subscription/LemonResumeSubscription.ts index 3193846d7..f4ea86a37 100644 --- a/packages/server/src/services/Subscription/LemonResumeSubscription.ts +++ b/packages/server/src/services/Subscription/LemonResumeSubscription.ts @@ -18,7 +18,10 @@ export class LemonResumeSubscription { * @param {string} subscriptionSlug - Subscription slug by default main subscription. * @returns {Promise} */ - public async resumeSubscription(tenantId: number, subscriptionSlug: string = 'main') { + public async resumeSubscription( + tenantId: number, + subscriptionSlug: string = 'main' + ) { configureLemonSqueezy(); const subscription = await PlanSubscription.query().findOne({ @@ -34,7 +37,7 @@ export class LemonResumeSubscription { cancelled: false, }); if (returnedSub.error) { - throw new ServiceError(ٌٌُERRORS.SOMETHING_WENT_WRONG_WITH_LS); + throw new ServiceError(ERRORS.SOMETHING_WENT_WRONG_WITH_LS); } // Triggers `onSubscriptionResume` event. await this.eventPublisher.emitAsync(