Fixed uuid references in schemas.
This commit is contained in:
1 parent
f40e1b44f3
commit
303947fe9b
16 files changed
+36
-27
No files matched your search
@@ -9,7 +9,7 @@ import { createUser, getUserByUsername } from '@/queries';
|
||||
|
||||
export async function POST(request: Request) {
|
||||
const schema = z.object({
|
||||
id: z.string().uuid().optional(),
|
||||
id: z.uuid().optional(),
|
||||
username: z.string().max(255),
|
||||
password: z.string(),
|
||||
role: z.string().regex(/admin|user|view-only/i),
|
||||
|
||||
Reference in new issue
Block a user