fix: hotfixes
All checks were successful
container-scan / Container Scan (pull_request) Successful in 2m33s
docker-build / docker (pull_request) Successful in 3m53s
tests / Tests (pull_request) Successful in 3m47s

This commit is contained in:
Dominik 2025-07-01 10:52:45 +02:00
parent 1ec636f3b0
commit ab869fbc29
Signed by: dominik
GPG key ID: 06A4003FC5049644
5 changed files with 14 additions and 4 deletions

View file

@ -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',
});