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-links-count.ts

Kiran K76ab7cb12686
diff --git a/apps/web/lib/api/links/get-links-count.ts b/apps/web/lib/api/links/get-links-count.ts
index 08d0084e8f..81cd4203f5 100644
--- a/apps/web/lib/api/links/get-links-count.ts
+++ b/apps/web/lib/api/links/get-links-count.ts
@@ -6,11 +6,9 @@ import { prisma } from "@dub/prisma";
export async function getLinksCount({
searchParams,
workspaceId,
- allowedFolderIds,
}: {
searchParams: z.infer<typeof getLinksCountQuerySchema>;
workspaceId: string;
- allowedFolderIds: string[];
}) {
const {
groupBy,
@@ -55,10 +53,6 @@ export async function getLinksCount({
groupBy !== "folderId" && {
folderId,
}),
-
- AND: {
- OR: [{ folderId: { in: allowedFolderIds } }, { folderId: null }],
- },
};
if (groupBy === "tagId") {
@@ -99,10 +93,6 @@ export async function getLinksCount({
},
}
: {}),
-
- AND: {
- OR: [{ folderId: { in: allowedFolderIds } }, { folderId: null }],
- },
};
if (