From 1174ce89bc5131ce36c4277a8276b9d14fa38e97 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Thu, 29 Jan 2026 21:36:38 -0800 Subject: [PATCH] remove shareId from website POST --- src/app/api/websites/route.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/api/websites/route.ts b/src/app/api/websites/route.ts index dd8e0ffd..29e79965 100644 --- a/src/app/api/websites/route.ts +++ b/src/app/api/websites/route.ts @@ -38,7 +38,6 @@ export async function POST(request: Request) { const schema = z.object({ name: z.string().max(100), domain: z.string().max(500), - shareId: z.string().max(50).nullable().optional(), teamId: z.uuid().nullable().optional(), id: z.uuid().nullable().optional(), }); @@ -49,7 +48,7 @@ export async function POST(request: Request) { return error(); } - const { id, name, domain, shareId, teamId } = body; + const { id, name, domain, teamId } = body; if (process.env.CLOUD_MODE && !teamId) { const account = await fetchAccount(auth.user.id); @@ -72,7 +71,6 @@ export async function POST(request: Request) { createdBy: auth.user.id, name, domain, - shareId, teamId, };