hotfix: fix the subscription plan when subscribe on cloud (#422)

This commit is contained in:
Ahmed Bouhuolia
2024-04-24 15:30:36 +02:00
committed by GitHub
parent 571a332658
commit 1372a1f0a8

View File

@@ -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.`);