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 get-top-links-for-workspace.ts

Steven Tey21097d4c577c
diff --git a/apps/web/scripts/get-top-links-for-workspace.ts b/apps/web/scripts/get-top-links-for-workspace.ts
index 6ebf9a66e7..92e91df0d3 100644
--- a/apps/web/scripts/get-top-links-for-workspace.ts
+++ b/apps/web/scripts/get-top-links-for-workspace.ts
@@ -36,7 +36,7 @@ async function main() {
}
const topLinks = await getClicks({
workspaceId: workspace.id,
- groupBy: "top_links",
+ endpoint: "top_links",
interval: "30d",
root: false,
}).then(async (data) => {