remove shareId from website POST

This commit is contained in:
Francis Cao 2026-01-29 21:36:38 -08:00
parent 1229663814
commit 1174ce89bc

View file

@ -38,7 +38,6 @@ export async function POST(request: Request) {
const schema = z.object({ const schema = z.object({
name: z.string().max(100), name: z.string().max(100),
domain: z.string().max(500), domain: z.string().max(500),
shareId: z.string().max(50).nullable().optional(),
teamId: z.uuid().nullable().optional(), teamId: z.uuid().nullable().optional(),
id: z.uuid().nullable().optional(), id: z.uuid().nullable().optional(),
}); });
@ -49,7 +48,7 @@ export async function POST(request: Request) {
return error(); return error();
} }
const { id, name, domain, shareId, teamId } = body; const { id, name, domain, teamId } = body;
if (process.env.CLOUD_MODE && !teamId) { if (process.env.CLOUD_MODE && !teamId) {
const account = await fetchAccount(auth.user.id); const account = await fetchAccount(auth.user.id);
@ -72,7 +71,6 @@ export async function POST(request: Request) {
createdBy: auth.user.id, createdBy: auth.user.id,
name, name,
domain, domain,
shareId,
teamId, teamId,
}; };