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 customer-created.ts

Kiran K3c04c169badf
diff --git a/apps/web/app/api/stripe/integration/webhook/customer-created.ts b/apps/web/app/api/stripe/integration/webhook/customer-created.ts
index fd3eba6e64..a0fd50cbf0 100644
--- a/apps/web/app/api/stripe/integration/webhook/customer-created.ts
+++ b/apps/web/app/api/stripe/integration/webhook/customer-created.ts
@@ -1,4 +1,3 @@
-import { transformLink } from "@/lib/api/links";
import { includeTags } from "@/lib/api/links/include-tags";
import { createId } from "@/lib/api/utils";
import { getClickEvent, recordLead } from "@/lib/tinybird";
@@ -93,7 +92,7 @@ export async function customerCreated(event: Stripe.Event) {
customer_id: customer.id,
};
- const [_lead, _link, workspace] = await Promise.all([
+ const [_lead, linkUpdated, workspace] = await Promise.all([
// Record lead
recordLead(leadData),
@@ -129,7 +128,7 @@ export async function customerCreated(event: Stripe.Event) {
workspace,
data: transformLeadEventData({
...leadData,
- link: transformLink(link),
+ link: linkUpdated,
customerId: customer.id,
customerExternalId: customer.externalId,
customerName: customer.name,