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 root shape

Steven Tey027d308e0fb1
diff --git a/apps/web/app/(ee)/api/cron/usage/utils.ts b/apps/web/app/(ee)/api/cron/usage/utils.ts
index a3eb0f1898..78a01a6033 100644
--- a/apps/web/app/(ee)/api/cron/usage/utils.ts
+++ b/apps/web/app/(ee)/api/cron/usage/utils.ts
@@ -122,7 +122,7 @@ export const updateUsage = async () => {
event: "clicks",
groupBy: "top_links",
interval: "30d",
- root: { values: ["false"], operator: "IS", sqlOperator: "IN" },
+ root: false,
});
const topFive = topLinks.slice(0, 5);
diff --git a/apps/web/scripts/download-top-links.ts b/apps/web/scripts/download-top-links.ts
index 3cd1ab44bd..31ffb6d71b 100644
--- a/apps/web/scripts/download-top-links.ts
+++ b/apps/web/scripts/download-top-links.ts
@@ -11,7 +11,7 @@ async function main() {
groupBy: "top_links",
workspaceId: "xxx",
interval: "30d",
- root: { values: ["false"], operator: "IS", sqlOperator: "IN" },
+ root: false,
}).then(async (data) => {
return await Promise.all(
data.map(
diff --git a/apps/web/scripts/dub-wrapped.ts b/apps/web/scripts/dub-wrapped.ts
index 2cca0f3208..395a460078 100644
--- a/apps/web/scripts/dub-wrapped.ts
+++ b/apps/web/scripts/dub-wrapped.ts
@@ -61,7 +61,7 @@ async function main() {
event: "clicks",
groupBy: "top_links",
interval: "ytd",
- root: { values: ["false"], operator: "IS", sqlOperator: "IN" },
+ root: false,
}),
getAnalytics({
workspaceId: projectId!,
diff --git a/apps/web/scripts/get-top-links-for-workspace.ts b/apps/web/scripts/get-top-links-for-workspace.ts
index 8e3fe35eb8..fa52e738a3 100644
--- a/apps/web/scripts/get-top-links-for-workspace.ts
+++ b/apps/web/scripts/get-top-links-for-workspace.ts
@@ -39,7 +39,7 @@ async function main() {
groupBy: "top_links",
workspaceId: workspace.id,
interval: "30d",
- root: { values: ["false"], operator: "IS", sqlOperator: "IN" },
+ root: false,
}).then(async (data) => {
const topFive = data.slice(0, 5);
return await Promise.all(