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.

extend to domain and user

Pedro Ladeira46f7f1c51c45
diff --git a/apps/web/app/api/links/count/route.ts b/apps/web/app/api/links/count/route.ts
index 9c481743c1..7443a45ff9 100644
--- a/apps/web/app/api/links/count/route.ts
+++ b/apps/web/app/api/links/count/route.ts
@@ -16,7 +16,13 @@ export const GET = withWorkspace(
userId: session.user.id,
});
- if (filters.groupBy === "tagId" && !filters.folderId && !folderIds) {
+ if (
+ (filters.groupBy === "tagId" ||
+ filters.groupBy === "domain" ||
+ filters.groupBy === "userId") &&
+ !filters.folderId &&
+ !folderIds
+ ) {
folderIds = await getFolderIdsToFilter({
workspace,
userId: session.user.id,