From 39b010c14c7dd5694fb97464161ebb9d7c7c6463 Mon Sep 17 00:00:00 2001 From: white Date: Fri, 12 Jan 2024 23:41:03 +0100 Subject: [PATCH] upd date array5 --- shared/src/recruitment-session.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/src/recruitment-session.ts b/shared/src/recruitment-session.ts index 23c080b..06ee473 100644 --- a/shared/src/recruitment-session.ts +++ b/shared/src/recruitment-session.ts @@ -29,7 +29,7 @@ export const createRecruitmentSessionSchema = Joi.object({ slotDuration: Joi.number().integer(), interviewStart: JoiDate.date().format("HH:mm").required(), interviewEnd: JoiDate.date().format("HH:mm").required(), - days: Joi.array().items(JoiDate.format("YYYY-MM-DD")), + days: Joi.array().items(JoiDate.date().format("YYYY-MM-DD")), lastModified: JoiDate.date().format("YYYY-MM-DD HH:mm").required(), }).options({ stripUnknown: true, @@ -42,7 +42,7 @@ export const updateRecruitmentSessionSchema = Joi.object({ slotDuration: Joi.number().integer(), interviewStart: JoiDate.date().format("YYYY-MM-DD HH:mm").optional(), interviewEnd: JoiDate.date().format("YYYY-MM-DD HH:mm").optional(), - days: Joi.array().items(JoiDate.format("YYYY-MM-DD")).optional(), + days: Joi.array().items(JoiDate.date().format("YYYY-MM-DD")).optional(), createdAt: JoiDate.date().format("YYYY-MM-DD HH:mm").optional(), lastModified: JoiDate.date().format("YYYY-MM-DD HH:mm").optional(), });