Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔧 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.ts
index 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 active
const isActive =
- subscription.status === "active" || subscription.status === "past_due";
+ subscription.status === "active" || subscription.status === "trialing";
// get the subscription price details
const lineItem = subscription.items.data[0];