fix: hotfixes
This commit is contained in:
parent
1ec636f3b0
commit
ab869fbc29
5 changed files with 14 additions and 4 deletions
|
@ -25,6 +25,14 @@ export const BlockedSlotsSchema = zod
|
|||
created_at: zod.date(),
|
||||
updated_at: zod.date(),
|
||||
})
|
||||
.refine(
|
||||
(data) => {
|
||||
return new Date(data.start_time) < new Date(data.end_time);
|
||||
},
|
||||
{
|
||||
message: 'Start time must be before end time',
|
||||
},
|
||||
)
|
||||
.openapi('BlockedSlotsSchema', {
|
||||
description: 'Blocked time slot in the user calendar',
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue