From ee86c7be512cf9a36724e147970845dd59bb9b19 Mon Sep 17 00:00:00 2001 From: alexeh Date: Thu, 17 Oct 2024 09:49:11 +0200 Subject: [PATCH] make role optional in schema --- shared/schemas/users/create-user.schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/schemas/users/create-user.schema.ts b/shared/schemas/users/create-user.schema.ts index 31936038..6166cfb1 100644 --- a/shared/schemas/users/create-user.schema.ts +++ b/shared/schemas/users/create-user.schema.ts @@ -5,5 +5,5 @@ export const CreateUserSchema = z.object({ email: z.string().email(), name: z.string().optional(), partnerName: z.string(), - role: z.enum([ROLES.ADMIN, ROLES.PARTNER]), + role: z.enum([ROLES.ADMIN, ROLES.PARTNER]).optional(), });