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.

Merge branch 'main' into tests-track-api

Kiran Kc1db44aaf1be
diff --cc apps/web/app/api/track/lead/route.ts
index bee3fe5ad3,302b5d4923..d299903c1d
--- a/apps/web/app/api/track/lead/route.ts
+++ b/apps/web/app/api/track/lead/route.ts
@@@ -155,22 -145,17 +148,22 @@@ export const POST = withWorkspaceEdge
id: clickId,
},
customer: {
- id: customer.externalId,
- name: customer.name,
- email: customer.email,
- avatar: customer.avatar,
+ id: externalId,
+ name: customerName,
+ email: customerEmail,
+ avatar: customerAvatar,
},
+ });
+
+ return NextResponse.json({
+ ...lead,
+
// for backwards compatibility – will remove soon
clickId,
- customerId: customer.externalId,
- customerName: customer.name,
- customerEmail: customer.email,
- customerAvatar: customer.avatar,
+ customerId: externalId,
+ customerName: customerName,
+ customerEmail: customerEmail,
+ customerAvatar: customerAvatar,
});
},
{