The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
rearrange externalId / customerId
Steven Tey7d552875a911
diff --git a/apps/web/app/api/track/sale/route.ts b/apps/web/app/api/track/sale/route.tsindex e96e7ccff6..63d5ecb627 100644--- a/apps/web/app/api/track/sale/route.ts+++ b/apps/web/app/api/track/sale/route.ts@@ -31,7 +31,7 @@ export const POST = withWorkspace(let {externalId,- customerId, // deprecated+ customerId: oldCustomerId, // deprecatedpaymentProcessor,invoiceId,amount,@@ -63,7 +63,7 @@ export const POST = withWorkspace(}}- const customerExternalId = customerId || externalId;+ const customerExternalId = externalId || oldCustomerId;if (!customerExternalId) {throw new DubApiError({