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 admin links

Steven Tey57c080c8175e
diff --git a/apps/web/app/api/admin/links/route.ts b/apps/web/app/api/admin/links/route.ts
index 13a8229f27..406da4eee6 100644
--- a/apps/web/app/api/admin/links/route.ts
+++ b/apps/web/app/api/admin/links/route.ts
@@ -19,9 +19,16 @@ export const GET = withAdmin(async ({ searchParams }) => {
const response = await prisma.link.findMany({
where: {
- userId: {
- not: LEGAL_USER_ID,
- },
+ OR: [
+ {
+ userId: {
+ not: LEGAL_USER_ID,
+ },
+ },
+ {
+ userId: null,
+ },
+ ],
...(domain
? { domain }
: {