Skip to content

Commit

Permalink
make role optional in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Oct 17, 2024
1 parent 051632b commit ee86c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/schemas/users/create-user.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});

0 comments on commit ee86c7b

Please sign in to comment.