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 route.ts

Steven Teyb629580286c1
diff --git a/apps/web/app/api/analytics/export/route.ts b/apps/web/app/api/analytics/export/route.ts
index f2a8463a5b..d0ea03a3fb 100644
--- a/apps/web/app/api/analytics/export/route.ts
+++ b/apps/web/app/api/analytics/export/route.ts
@@ -119,8 +119,6 @@ export const GET = withWorkspace(
zip.file(`${endpoint}.csv`, csvData);
} else {
- // skip clicks endpoint
- if (endpoint === "clicks") return;
// we're not fetching top URLs data if linkId is not defined
if (endpoint === "top_urls" && !linkId) return;