Fixed uuid references in schemas.

This commit is contained in:
Mike Cao
2025-09-08 15:28:01 -07:00
parent f40e1b44f3
commit 303947fe9b
16 changed files with 36 additions and 27 deletions

View File

@@ -9,8 +9,8 @@ export async function POST(
{ params }: { params: Promise<{ websiteId: string }> },
) {
const schema = z.object({
userId: z.string().uuid().optional(),
teamId: z.string().uuid().optional(),
userId: z.uuid().optional(),
teamId: z.uuid().optional(),
});
const { auth, body, error } = await parseRequest(request, schema);

View File

@@ -13,7 +13,7 @@ export async function POST(request: Request) {
domain: z.string().max(500),
shareId: z.string().max(50).nullable().optional(),
teamId: z.string().nullable().optional(),
id: z.string().uuid().nullable().optional(),
id: z.uuid().nullable().optional(),
});
const { auth, body, error } = await parseRequest(request, schema);