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.

fix issue with getLeadEvent

Steven Tey265b93fb07a9
diff --git a/apps/web/app/api/track/sale/route.ts b/apps/web/app/api/track/sale/route.ts
index 1135dd08c7..cfc059c4a0 100644
--- a/apps/web/app/api/track/sale/route.ts
+++ b/apps/web/app/api/track/sale/route.ts
@@ -27,7 +27,7 @@ export const POST = withWorkspaceEdge(
waitUntil(
(async () => {
- const leadEvent = await getLeadEvent({ customer_id: customerId });
+ const leadEvent = await getLeadEvent({ customerId });
if (!leadEvent || leadEvent.data.length === 0) {
console.log("No lead event found for customer_id:", customerId);
diff --git a/apps/web/lib/tinybird/get-lead-event.ts b/apps/web/lib/tinybird/get-lead-event.ts
index a407d82a1a..a32a4d8283 100644
--- a/apps/web/lib/tinybird/get-lead-event.ts
+++ b/apps/web/lib/tinybird/get-lead-event.ts
@@ -5,7 +5,7 @@ import { tb } from "./client";
export const getLeadEvent = tb.buildPipe({
pipe: "get_lead_event",
parameters: z.object({
- customer_id: z.string(),
+ customerId: z.string(),
}),
data: leadEventSchemaTB,
});