fix: allows patching booking and period limits from API (#10935)
This commit is contained in:
1 parent
7ddbcfcdcf
commit
6ce4122528
5 files changed
+29
-5
No files matched your search
@@ -79,7 +79,9 @@ model EventType {
|
||||
bookingFields Json?
|
||||
timeZone String?
|
||||
periodType PeriodType @default(UNLIMITED)
|
||||
/// @zod.custom(imports.coerceToDate)
|
||||
periodStartDate DateTime?
|
||||
/// @zod.custom(imports.coerceToDate)
|
||||
periodEndDate DateTime?
|
||||
periodDays Int?
|
||||
periodCountCalendarDays Boolean?
|
||||
|
||||
@@ -608,3 +608,5 @@ export const ZVerifyCodeInputSchema = z.object({
|
||||
});
|
||||
|
||||
export type ZVerifyCodeInputSchema = z.infer<typeof ZVerifyCodeInputSchema>;
|
||||
|
||||
export const coerceToDate = z.coerce.date();
|
||||
Reference in new issue
Block a user