fix: add back optional

pull/9078/head
Agusti Fernandez Pardo 2022-06-14 23:43:53 +02:00
parent 372b20a4c9
commit 1bde5d88c1
1 changed files with 1 additions and 1 deletions

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(),