diff --git a/shared/src/availability.ts b/shared/src/availability.ts index ecdbd38..5577ae3 100644 --- a/shared/src/availability.ts +++ b/shared/src/availability.ts @@ -1,4 +1,4 @@ -import { TimeSlot, createTimeSlotSchema } from "timeslot"; +import { TimeSlot, createTimeSlotSchema } from "./timeslot"; import { Action, ApplyAbilities } from "./abilities"; import { Person, Role, createUserSchema } from "./person"; import * as Joi from "joi"; @@ -29,8 +29,8 @@ export const insertAvailabilitySchema = Joi.object({ .valid(...Object.values(AvailabilityType)) .required(), lastModified: Joi.date().required(), - timeSlot: createTimeSlotSchema.required(), - user: createUserSchema.required(), + //timeSlot: Joi.object(createTimeSlotSchema).required(), + //user: Joi.object(createUserSchema).required(), }).options({ stripUnknown: true, abortEarly: false,