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.

filter links count by tenantId

Steven Tey097340747958
diff --git a/apps/web/lib/api/links/get-links-count.ts b/apps/web/lib/api/links/get-links-count.ts
index 75fad3957c..966d116992 100644
--- a/apps/web/lib/api/links/get-links-count.ts
+++ b/apps/web/lib/api/links/get-links-count.ts
@@ -23,6 +23,7 @@ export async function getLinksCount({
showArchived,
withTags,
folderId,
+ tenantId,
} = searchParams;
const combinedTagIds = combineTagIds({ tagId, tagIds });
@@ -70,6 +71,7 @@ export async function getLinksCount({
groupBy !== "userId" && {
userId,
}),
+ ...(tenantId && { tenantId }),
};
if (groupBy === "tagId") {