The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update customer-subscription-deleted.ts
Kiran Kc407b67b8f4c
diff --git a/apps/web/app/api/stripe/webhook/customer-subscription-deleted.ts b/apps/web/app/api/stripe/webhook/customer-subscription-deleted.tsindex 06f8b2a2d9..960eb5fe3f 100644--- a/apps/web/app/api/stripe/webhook/customer-subscription-deleted.ts+++ b/apps/web/app/api/stripe/webhook/customer-subscription-deleted.ts@@ -96,6 +96,7 @@ export async function customerSubscriptionDeleted(event: Stripe.Event) {usersLimit: FREE_PLAN.limits.users!,salesLimit: FREE_PLAN.limits.sales!,paymentFailedAt: null,+ foldersUsage: 0,},}),@@ -206,17 +207,6 @@ export async function customerSubscriptionDeleted(event: Stripe.Event) {},});- await prisma.project.update({- where: {- id: workspace.id,- },- data: {- foldersUsage: {- decrement: folders.length,- },- },- });-await Promise.all(folders.map(({ id }) =>scheduleLinkSync({