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

Kiran K2902256fce77
diff --git a/apps/web/app/api/embed/referrals/links/route.ts b/apps/web/app/api/embed/referrals/links/route.ts
index 34d1a24466..57d47bbc68 100644
--- a/apps/web/app/api/embed/referrals/links/route.ts
+++ b/apps/web/app/api/embed/referrals/links/route.ts
@@ -15,6 +15,9 @@ export const GET = withReferralsEmbedToken(async ({ links }) => {
return NextResponse.json(partnerLinks);
});
+// TODO:
+// Under which workspace user the link should be created?
+
// POST /api/embed/referrals/links – create links for a partner
export const POST = withReferralsEmbedToken(
async ({ req, programEnrollment, program, links }) => {
@@ -51,9 +54,6 @@ export const POST = withReferralsEmbedToken(
});
}
- // TODO:
- // Under which workspace user the link should be created?
-
const { link, error, code } = await processLink({
payload: {
key: key || undefined,
@@ -69,7 +69,7 @@ export const POST = withReferralsEmbedToken(
id: program.workspaceId,
plan: "business",
},
- userId: "cm1ypncqa0000tc44pfgxp6qs", //session.user.id,
+ // userId: session.user.id,
skipFolderChecks: true, // can't be changed by the partner
skipProgramChecks: true, // can't be changed by the partner
skipExternalIdChecks: true, // can't be changed by the partner