fix: build error jsonSchema metadata not nullable

This commit is contained in:
Agusti Fernandez Pardo committed 2022-05-31 18:42:20 +02:00
1 parent 9459b9048d
commit 4eccc8a74b
1 file changed
+1 -1
+1 -1
View File
@@ -93,7 +93,7 @@ const schemaUserEditParams = z.object({
.optional() .optional()
.nullable(), .nullable(),
locale: z.nativeEnum(locales).optional().nullable(), locale: z.nativeEnum(locales).optional().nullable(),
metadata: jsonSchema.or(z.null()), metadata: jsonSchema,
}); });
// @note: These are the values that are editable via PATCH method on the user Model, // @note: These are the values that are editable via PATCH method on the user Model,