fix: remove user metadta from validations
parent
5a914934dd
commit
2682db8fcd
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue