From 29be8f52667576b5090e58e84b9be08b3688f72a Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Thu, 16 Jun 2022 21:50:41 +0200 Subject: [PATCH] fix: makes id optional in availability --- pages/api/availability/_get.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/availability/_get.ts b/pages/api/availability/_get.ts index 5289190c03..21450f005e 100644 --- a/pages/api/availability/_get.ts +++ b/pages/api/availability/_get.ts @@ -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(),