Merge pull request #121 from calcom/fix/user-metadata

fix: make jsonSchema.optional()
pull/9078/head
Agusti Fernandez Pardo 2022-06-13 23:58:52 +02:00 committed by GitHub
commit 55d8af0ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ const schemaUserEditParams = z.object({
.optional()
.nullable(),
locale: z.nativeEnum(locales).optional().nullable(),
metadata: jsonSchema,
metadata: jsonSchema.optional(),
});
// @note: These are the values that are editable via PATCH method on the user Model,