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 track-lead.ts

Kiran K17b177a8d9f7
diff --git a/apps/web/lib/api/conversions/track-lead.ts b/apps/web/lib/api/conversions/track-lead.ts
index 056de00ee7..98e18fb648 100644
--- a/apps/web/lib/api/conversions/track-lead.ts
+++ b/apps/web/lib/api/conversions/track-lead.ts
@@ -192,7 +192,6 @@ export const trackLead = async ({
clickedAt: new Date(clickData.timestamp + "Z"),
},
});
- console.log(`customer created: ${JSON.stringify(customer, null, 2)}`);
}
// if wait mode, record the lead event synchronously
@@ -211,6 +210,7 @@ export const trackLead = async ({
redis.set(`leadCache:${customer.id}`, cacheLeadEventPayload, {
ex: 60 * 5,
}),
+
redis.set(
`leadCache:${customer.id}:${stringifiedEventName}`,
cacheLeadEventPayload,
@@ -226,8 +226,7 @@ export const trackLead = async ({
// for async mode, record the lead event in the background
// for deferred mode, defer the lead event creation to a subsequent request
if (mode === "async") {
- const res = await recordLead(createLeadEventPayload(customer.id));
- console.log("lead event recorded:", res);
+ await recordLead(createLeadEventPayload(customer.id));
}
// track the conversion event in our logs