mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* Revert "Revert "chore: Chore team metadata table + isOrganization migration from metadata (#12828)""
This reverts commit 2408338ed4.
* Remove constraint slug,isOrganization and reset migration
* fix: conflicts
* change schema to bust cache
* Fix issues reported by TS
* change schema to bust cache
* Review fixes
* Colaesce for orgAutoAcceptEmail as well
* Fix missing negation
---------
Co-authored-by: zomars <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
Co-authored-by: Joe Au-Yeung <[email protected]>
13 lines
332 B
TypeScript
13 lines
332 B
TypeScript
import { z } from "zod";
|
|
|
|
import { orgSettingsSchema } from "@calcom/prisma/zod-utils";
|
|
|
|
export const ZAdminUpdate = z.object({
|
|
id: z.number(),
|
|
name: z.string().optional(),
|
|
slug: z.string().nullish(),
|
|
organizationSettings: orgSettingsSchema.unwrap().optional(),
|
|
});
|
|
|
|
export type TAdminUpdate = z.infer<typeof ZAdminUpdate>;
|