Skip to content

Commit

Permalink
fix: interviewSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed Jun 1, 2024
1 parent 2694235 commit a8a067d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions shared/src/interview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ export interface Interview {
export const createInterviewSchema = Joi.object<Interview>({
notes: Joi.string().required(),
createdAt: Joi.date().required(),
interviewer1: createUserSchema.required(),
interviewer2: createUserSchema.required(),
optionalInterviewer: createUserSchema.optional(),
interviewer1: Joi.object<Person>().required(),
interviewer2: Joi.object<Person>().required(),
optionalInterviewer: Joi.object<Person>().optional(),
});

export const updateInterviewSchema = Joi.object<Interview>({
notes: Joi.string().optional(),
createdAt: Joi.date().optional(),
//timeslot: updateTimeSlotSchema.optional(),
application: updateApplicationSchema.optional(),
interviewer1: updateUserSchema.optional(),
interviewer2: updateUserSchema.optional(),
optionalInterviewer: updateUserSchema.optional(),
application: Joi.object<Application>().optional(),
interviewer1: Joi.object<Person>().optional(),
interviewer2: Joi.object<Person>().optional(),
optionalInterviewer: Joi.object<Person>().optional(),
});

export const applyAbilitiesOnInterview: ApplyAbilities = (
Expand Down

0 comments on commit a8a067d

Please sign in to comment.