The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update enroll-partner.ts
Kiran K7f5417f6e463
diff --git a/apps/web/lib/api/partners/enroll-partner.ts b/apps/web/lib/api/partners/enroll-partner.tsindex 01071eb25e..a78c063377 100644--- a/apps/web/lib/api/partners/enroll-partner.ts+++ b/apps/web/lib/api/partners/enroll-partner.ts@@ -199,6 +199,12 @@ export const createLinkAndEnrollPartner = async ({},});+ // TODO:+ // Instead of throwing an error, we should try to create a link with a random key+ // if (code === "conflict") {++ // }+if (error != null) {throw new DubApiError({code: code as ErrorCodes,