The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Kiran K141800750d52
diff --git a/apps/web/app/(ee)/api/track/click/route.ts b/apps/web/app/(ee)/api/track/click/route.tsindex 14acd8edf8..cbac955db5 100644--- a/apps/web/app/(ee)/api/track/click/route.ts+++ b/apps/web/app/(ee)/api/track/click/route.ts@@ -136,13 +136,15 @@ export const POST = withAxiom(async (req: AxiomRequest) => {clickId,...(isPartnerLink && {partner,- discount: {- ...discount,- // Support backwards compatibility with old cache format- // We could potentially remove after 24 hours- couponId: discount?.couponId ?? null,- couponTestId: discount?.couponTestId ?? null,- },+ discount: discount+ ? {+ ...discount,+ // Support backwards compatibility with old cache format+ // We could potentially remove after 24 hours+ couponId: discount?.couponId ?? null,+ couponTestId: discount?.couponTestId ?? null,+ }+ : null,}),});