Merge pull request #127 from calcom/fix/optional-userId-availability

fix: makes id optional in availability
pull/9078/head
Agusti Fernandez Pardo 2022-06-16 21:53:15 +02:00 committed by GitHub
commit 5a914934dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 const availabilitySchema = z
.object({ .object({
userId: stringOrNumber, userId: stringOrNumber.optional(),
username: z.string().optional(), username: z.string().optional(),
dateFrom: z.string(), dateFrom: z.string(),
dateTo: z.string(), dateTo: z.string(),