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.

remove customerId

Steven Tey51bc15163dc3
diff --git a/apps/web/app/api/track/lead/route.ts b/apps/web/app/api/track/lead/route.ts
index b4dad8166b..1c481d6f9a 100644
--- a/apps/web/app/api/track/lead/route.ts
+++ b/apps/web/app/api/track/lead/route.ts
@@ -164,7 +164,6 @@ export const POST = withWorkspaceEdge(
...lead,
// for backwards compatibility – will remove soon
clickId,
- customerId: customerExternalId,
customerName: finalCustomerName,
customerEmail: customerEmail,
customerAvatar: customerAvatar,
diff --git a/apps/web/tests/tracks/track-lead.test.ts b/apps/web/tests/tracks/track-lead.test.ts
index bdc34aac7d..3bc5afda1a 100644
--- a/apps/web/tests/tracks/track-lead.test.ts
+++ b/apps/web/tests/tracks/track-lead.test.ts
@@ -25,7 +25,6 @@ describe("POST /track/lead", async () => {
expect(response.status).toEqual(200);
expect(response.data).toStrictEqual({
clickId: E2E_CLICK_ID,
- customerId: customer.id,
customerName: customer.name,
customerEmail: customer.email,
customerAvatar: customer.avatar,
@@ -33,10 +32,10 @@ describe("POST /track/lead", async () => {
id: E2E_CLICK_ID,
},
customer: {
- externalId: customer.id,
name: customer.name,
email: customer.email,
avatar: customer.avatar,
+ externalId: customer.id,
},
});
});