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.

Update import-customers.ts

Kiran Ka23d8583d045
diff --git a/apps/web/lib/partnerstack/import-customers.ts b/apps/web/lib/partnerstack/import-customers.ts
index 7c49c8dc68..c07d0ab4f5 100644
--- a/apps/web/lib/partnerstack/import-customers.ts
+++ b/apps/web/lib/partnerstack/import-customers.ts
@@ -219,7 +219,7 @@ async function createCustomer({
country: clickEvent.country,
clickedAt: new Date(customer.created_at),
createdAt: new Date(customer.created_at),
- externalId: customer.customer_key,
+ externalId: customer.customer_key || customer.email,
},
});