diff --git a/apps/web/app/api/workspaces/route.ts b/apps/web/app/api/workspaces/route.ts index a5d5760948..2cdbcc58dd 100644 --- a/apps/web/app/api/workspaces/route.ts +++ b/apps/web/app/api/workspaces/route.ts @@ -157,6 +157,7 @@ export const POST = withSession(async ({ req, session }) => { const response = { ...projectResponse, + id: `ws_${projectResponse.id}`, domains: projectResponse.domains.map(({ slug, primary }) => ({ slug, primary, diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts index f5cd64b729..358637ceb8 100644 --- a/apps/web/lib/zod/schemas/links.ts +++ b/apps/web/lib/zod/schemas/links.ts @@ -217,7 +217,7 @@ export const createLinkBodySchema = z.object({ ), }); -export const updateLinkBodySchema = createLinkBodySchema.partial(); +export const updateLinkBodySchema = createLinkBodySchema.partial().optional(); export const bulkCreateLinksBodySchema = z .array(createLinkBodySchema)