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.

limit domains array in workspace PATCH route

Steven Tey01e1907b68ee
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/route.ts
index 1381b48745..84d27f2b9b 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/route.ts
+++ b/apps/web/app/api/workspaces/[idOrSlug]/route.ts
@@ -27,6 +27,7 @@ export const GET = withWorkspace(
select: {
slug: true,
primary: true,
+ verified: true,
},
take: 100,
});
@@ -91,7 +92,14 @@ export const PATCH = withWorkspace(
}),
},
include: {
- domains: true,
+ domains: {
+ select: {
+ slug: true,
+ primary: true,
+ verified: true,
+ },
+ take: 100,
+ },
users: true,
},
});