From 1372a1f0a8bd1f5d49cc60c8dac1ec6630f79c62 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Wed, 24 Apr 2024 15:30:36 +0200 Subject: [PATCH] hotfix: fix the subscription plan when subscribe on cloud (#422) --- .../server/src/services/Subscription/LemonSqueezyWebhooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/services/Subscription/LemonSqueezyWebhooks.ts b/packages/server/src/services/Subscription/LemonSqueezyWebhooks.ts index 904a926872..adec8b0289 100644 --- a/packages/server/src/services/Subscription/LemonSqueezyWebhooks.ts +++ b/packages/server/src/services/Subscription/LemonSqueezyWebhooks.ts @@ -70,7 +70,7 @@ export class LemonSqueezyWebhooks { const variantId = attributes.variant_id as string; // We assume that the Plan table is up to date. - const plan = await Plan.query().findOne('slug', 'essentials-yearly'); + const plan = await Plan.query().findOne('slug', 'early-adaptor'); if (!plan) { throw new Error(`Plan with variantId ${variantId} not found.`);