fix: remove user metadta from validations

pull/9078/head
Agusti Fernandez Pardo 2022-06-16 23:38:36 +02:00
parent 5a914934dd
commit 2682db8fcd
1 changed files with 0 additions and 4 deletions

View File

@ -59,7 +59,6 @@ export const schemaUserBaseBodyParams = User.pick({
timeZone: true,
weekStart: true,
endTime: true,
metadata: true,
bufferTime: true,
theme: true,
defaultScheduleId: true,
@ -93,7 +92,6 @@ const schemaUserEditParams = z.object({
.optional()
.nullable(),
locale: z.nativeEnum(locales).optional().nullable(),
metadata: jsonSchema.optional(),
});
// @note: These are the values that are editable via PATCH method on the user Model,
@ -116,7 +114,6 @@ const schemaUserCreateParams = z.object({
.optional()
.nullable(),
locale: z.nativeEnum(locales).optional(),
metadata: jsonSchema,
createdDate: z.string().or(z.date()).optional(),
});
@ -141,7 +138,6 @@ export const schemaUserReadPublic = User.pick({
emailVerified: true,
bio: true,
avatar: true,
metadata: true,
timeZone: true,
weekStart: true,
endTime: true,