remove shareId from website POST

This commit is contained in:
Francis Cao committed 2026-01-29 21:36:38 -08:00
1 parent 1229663814
commit 1174ce89bc
1 file changed
+1 -3
+1 -3
View File
@@ -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,
};