Merge pull request #127 from calcom/fix/optional-userId-availability
fix: makes id optional in availabilitypull/9078/head
commit
5a914934dd
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue