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.

rearrange externalId / customerId

Steven Tey7d552875a911
diff --git a/apps/web/app/api/track/sale/route.ts b/apps/web/app/api/track/sale/route.ts
index 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, // deprecated
paymentProcessor,
invoiceId,
amount,
@@ -63,7 +63,7 @@ export const POST = withWorkspace(
}
}
- const customerExternalId = customerId || externalId;
+ const customerExternalId = externalId || oldCustomerId;
if (!customerExternalId) {
throw new DubApiError({