Merge branch 'main' into feature/gro-622-security-hardening

This commit is contained in:
groombook-cto[bot]
2026-04-15 06:53:50 +00:00
committed by GitHub
14 changed files with 423 additions and 86 deletions
+4 -1
View File
@@ -102,7 +102,10 @@ bookRouter.get("/availability", async (c) => {
const bookingSchema = z.object({
serviceId: z.string().uuid(),
startTime: z.string().datetime(),
startTime: z.string().datetime().refine(
(dt) => new Date(dt) > new Date(),
{ message: "Appointment must be in the future" }
),
clientName: z.string().min(1).max(200),
clientEmail: z.string().email(),
clientPhone: z.string().max(50).optional(),