Skip to content

Commit

Permalink
upd date array4
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed Jan 12, 2024
1 parent 0fddaee commit d8daacc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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:
days: Joi.array().items(JoiDate.format("YYYY-MM-DD")),
lastModified: JoiDate.date().format("YYYY-MM-DD HH:mm").required(),
}).options({
stripUnknown: true,
Expand All @@ -42,8 +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:
// .optional(),
days: Joi.array().items(JoiDate.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 d8daacc

Please sign in to comment.