mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-04 00:48:52 +02:00
🔧 Update subscription active status
This commit is contained in:
parent
68a2c0ee9c
commit
0038b238ca
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue