The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update utils.ts
Kiran Kf268f3e77340
diff --git a/apps/web/app/api/stripe/integration/webhook/utils.ts b/apps/web/app/api/stripe/integration/webhook/utils.tsindex 82a5d0574d..97d934faf2 100644--- a/apps/web/app/api/stripe/integration/webhook/utils.ts+++ b/apps/web/app/api/stripe/integration/webhook/utils.ts@@ -1,3 +1,4 @@+import { includeTags } from "@/lib/api/links/include-tags";import { createId } from "@/lib/api/utils";import { getClickEvent, recordLead } from "@/lib/tinybird";import { sendWorkspaceWebhook } from "@/lib/webhook/publish";@@ -62,7 +63,7 @@ export async function createNewCustomer(event: Stripe.Event) {customer_id: customer.id,};- const [_lead, _link, workspace] = await Promise.all([+ const [_lead, linkUpdated, workspace] = await Promise.all([// Record leadrecordLead(leadData),@@ -76,6 +77,7 @@ export async function createNewCustomer(event: Stripe.Event) {increment: 1,},},+ include: includeTags,}),// update workspace usage@@ -97,7 +99,7 @@ export async function createNewCustomer(event: Stripe.Event) {workspace,data: transformLeadEventData({...leadData,- link,+ link: linkUpdated,customerId: customer.id,customerExternalId: customer.externalId,customerName: customer.name,