Skip to content

Commit

Permalink
upd date array5
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed Jan 12, 2024
1 parent d8daacc commit 39b010c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/src/recruitment-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const createRecruitmentSessionSchema = Joi.object<RecruitmentSession>({
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,
Expand All @@ -42,7 +42,7 @@ export const updateRecruitmentSessionSchema = Joi.object<RecruitmentSession>({
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(),
});
Expand Down

0 comments on commit 39b010c

Please sign in to comment.