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.

cleanup

Kiran Kc37b50a6d287
diff --git a/apps/web/lib/analytics/leads.ts b/apps/web/lib/analytics/leads.ts
index 269f300df8..de7e2f56c4 100644
--- a/apps/web/lib/analytics/leads.ts
+++ b/apps/web/lib/analytics/leads.ts
@@ -70,19 +70,13 @@ export const getLeads = async (
}
}
- console.log("props", { ...props, start, end, workspaceId, granularity });
-
- const response = await pipe(
- getClickAnalytics.parse({
- ...props,
- workspaceId,
- // start: start.toISOString().replace("T", " ").replace("Z", ""),
- // end: end.toISOString().replace("T", " ").replace("Z", ""),
- start: start.toISOString(),
- end: end.toISOString(),
- granularity,
- }),
- );
+ const response = await pipe({
+ ...props,
+ workspaceId,
+ start: start.toISOString().replace("T", " ").replace("Z", ""),
+ end: end.toISOString().replace("T", " ").replace("Z", ""),
+ granularity,
+ });
// for total leads, we return just the value;
// everything else we return an array of values