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 query

Kiran Kfcae3e2b6343
diff --git a/apps/web/app/api/links/export/route.ts b/apps/web/app/api/links/export/route.ts
index f0808a12f1..3ae1030b3f 100644
--- a/apps/web/app/api/links/export/route.ts
+++ b/apps/web/app/api/links/export/route.ts
@@ -100,7 +100,9 @@ export const GET = withWorkspace(
}),
...(userId && { userId }),
...(folderId && { folderId }),
- OR: [{ folderId: { in: folderIds } }, { folderId: null }],
+ AND: {
+ OR: [{ folderId: { in: folderIds } }, { folderId: null }],
+ },
},
orderBy: {
[sort]: "desc",