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.

temporarily bump up folders search limit

Steven Tey644455803c65
diff --git a/apps/web/lib/api/links/get-links-count.ts b/apps/web/lib/api/links/get-links-count.ts
index e5f6f04db5..4809efad12 100644
--- a/apps/web/lib/api/links/get-links-count.ts
+++ b/apps/web/lib/api/links/get-links-count.ts
@@ -31,16 +31,6 @@ export async function getLinksCount({
projectId: workspaceId,
archived: showArchived ? undefined : false,
AND: [
- ...(search
- ? [
- {
- OR: [
- { shortLink: { contains: search } },
- { url: { contains: search } },
- ],
- },
- ]
- : []),
...(folderIds
? [
{
@@ -61,6 +51,16 @@ export async function getLinksCount({
folderId: folderId || null,
},
]),
+ ...(search
+ ? [
+ {
+ OR: [
+ { shortLink: { contains: search } },
+ { url: { contains: search } },
+ ],
+ },
+ ]
+ : []),
],
...(domain &&
groupBy !== "domain" && {
diff --git a/apps/web/lib/folder/get-folders.ts b/apps/web/lib/folder/get-folders.ts
index 497ce13ff4..aa93c8d67b 100644
--- a/apps/web/lib/folder/get-folders.ts
+++ b/apps/web/lib/folder/get-folders.ts
@@ -60,7 +60,7 @@ export const getFolders = async ({
orderBy: {
createdAt: "asc",
},
- take: 100,
+ take: 200,
// TODO: Add pagination
});