Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Add dubCustomerId

Richie McIlroyd578685d2715
diff --git a/apps/web/app/api/desktop/[...route]/root.ts b/apps/web/app/api/desktop/[...route]/root.ts
index 4d511585a..5fe4b172d 100644
--- a/apps/web/app/api/desktop/[...route]/root.ts
+++ b/apps/web/app/api/desktop/[...route]/root.ts
@@ -182,7 +182,7 @@ app.post(
success_url: `${serverEnv().WEB_URL}/dashboard/caps?upgrade=true`,
cancel_url: `${serverEnv().WEB_URL}/pricing`,
allow_promotion_codes: true,
- metadata: { platform: "desktop" },
+ metadata: { platform: "desktop", dubCustomerId: user.id },
});
if (checkoutSession.url) {
diff --git a/apps/web/app/api/settings/billing/subscribe/route.ts b/apps/web/app/api/settings/billing/subscribe/route.ts
index ae02c6836..a6a0f22a4 100644
--- a/apps/web/app/api/settings/billing/subscribe/route.ts
+++ b/apps/web/app/api/settings/billing/subscribe/route.ts
@@ -66,7 +66,7 @@ export async function POST(request: NextRequest) {
success_url: `${serverEnv().WEB_URL}/dashboard/caps?upgrade=true`,
cancel_url: `${serverEnv().WEB_URL}/pricing`,
allow_promotion_codes: true,
- metadata: { platform: "web" },
+ metadata: { platform: "web", dubCustomerId: user.id },
});
if (checkoutSession.url) {