Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Merge branch 'main' into link-folders

Steven Tey893a273e7a44
diff --cc apps/web/app/api/stripe/webhook/customer-subscription-deleted.ts
index af36b3115e,1c77159737..b0d7240715
--- a/apps/web/app/api/stripe/webhook/customer-subscription-deleted.ts
+++ b/apps/web/app/api/stripe/webhook/customer-subscription-deleted.ts
@@@ -86,8 -86,8 +86,9 @@@ export async function customerSubscript
domainsLimit: FREE_PLAN.limits.domains!,
aiLimit: FREE_PLAN.limits.ai!,
tagsLimit: FREE_PLAN.limits.tags!,
+ foldersLimit: FREE_PLAN.limits.folders!,
usersLimit: FREE_PLAN.limits.users!,
+ paymentFailedAt: null,
},
}),
diff --cc apps/web/app/api/stripe/webhook/customer-subscription-updated.ts
index 33037fa446,a11af4d044..d40b2659f0
--- a/apps/web/app/api/stripe/webhook/customer-subscription-updated.ts
+++ b/apps/web/app/api/stripe/webhook/customer-subscription-updated.ts
@@@ -73,8 -74,8 +74,9 @@@ export async function customerSubscript
domainsLimit: plan.limits.domains!,
aiLimit: plan.limits.ai!,
tagsLimit: plan.limits.tags!,
+ foldersLimit: plan.limits.folders!,
usersLimit: plan.limits.users!,
+ paymentFailedAt: null,
},
}),
prisma.restrictedToken.updateMany({