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 K3e02452830f1
diff --git a/apps/web/app/api/embed/referrals/links/route.ts b/apps/web/app/api/embed/referrals/links/route.ts
index 57d47bbc68..c039c47dbd 100644
--- a/apps/web/app/api/embed/referrals/links/route.ts
+++ b/apps/web/app/api/embed/referrals/links/route.ts
@@ -16,7 +16,7 @@ export const GET = withReferralsEmbedToken(async ({ links }) => {
});
// TODO:
-// Under which workspace user the link should be created?
+// Under which workspace user the link should be created?
// POST /api/embed/referrals/links – create links for a partner
export const POST = withReferralsEmbedToken(
@@ -83,8 +83,9 @@ export const POST = withReferralsEmbedToken(
}
const partnerLink = await createLink(link);
- const createdLink = ReferralsEmbedLinkSchema.parse(partnerLink);
- return NextResponse.json(createdLink, { status: 201 });
+ return NextResponse.json(ReferralsEmbedLinkSchema.parse(partnerLink), {
+ status: 201,
+ });
},
);