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.

Update route.ts

Steven Tey011dc8ba9e73
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/billing/upgrade/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/billing/upgrade/route.ts
index 86c3197d4c..7f63aaf292 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/billing/upgrade/route.ts
+++ b/apps/web/app/api/workspaces/[idOrSlug]/billing/upgrade/route.ts
@@ -87,15 +87,15 @@ export const POST = withWorkspace(async ({ req, workspace, session }) => {
metadata: {
dubCustomerId: session.user.id,
},
- ...(referralCoupon
- ? {
- discounts: [
- {
- coupon: referralCoupon,
- },
- ],
- }
- : {}),
+ // ...(referralCoupon
+ // ? {
+ // discounts: [
+ // {
+ // coupon: referralCoupon,
+ // },
+ // ],
+ // }
+ // : {}),
});
return NextResponse.json(stripeSession);