diff --git a/lib/validations/user.ts b/lib/validations/user.ts index 1a69eb5c7c..dcaafdf8d2 100644 --- a/lib/validations/user.ts +++ b/lib/validations/user.ts @@ -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,