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(), });