fix: makes id optional in availability

This commit is contained in:
Agusti Fernandez Pardo committed 2022-06-16 21:50:41 +02:00
1 parent def5c8dd4c
commit 29be8f5266
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ import { stringOrNumber } from "@calcom/prisma/zod-utils";
const availabilitySchema = z
.object({
userId: stringOrNumber,
userId: stringOrNumber.optional(),
username: z.string().optional(),
dateFrom: z.string(),
dateTo: z.string(),