Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔧 Update subscription active status
Luke Vella0038b238ca4a
diff --git a/apps/web/src/pages/api/stripe/webhook.ts b/apps/web/src/pages/api/stripe/webhook.tsindex ea3842047..c9998674c 100644--- a/apps/web/src/pages/api/stripe/webhook.ts+++ b/apps/web/src/pages/api/stripe/webhook.ts@@ -110,7 +110,7 @@ async function stripeApiHandler(req: NextApiRequest, res: NextApiResponse) {// check if the subscription is activeconst isActive =- subscription.status === "active" || subscription.status === "past_due";+ subscription.status === "active" || subscription.status === "trialing";// get the subscription price detailsconst lineItem = subscription.items.data[0];