Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markdeluk committed Dec 9, 2023
1 parent 1d62900 commit e7c2b52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shared/src/availability.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -29,8 +29,8 @@ export const insertAvailabilitySchema = Joi.object<Availability>({
.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,
Expand Down

0 comments on commit e7c2b52

Please sign in to comment.