fix: use json.parse to get id (#4001)
* fix: use json.parse to get id * fix: type error * fix: add zod parse * chore: remove type Co-authored-by: Omar López <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
2 files changed
+20
-4
No files matched your search
@@ -112,6 +112,14 @@ export const vitalSettingsUpdateSchema = z.object({
|
||||
sleepValue: z.number().optional(),
|
||||
});
|
||||
|
||||
export const createdEventSchema = z
|
||||
.object({
|
||||
id: z.string(),
|
||||
password: z.union([z.string(), z.undefined()]),
|
||||
onlineMeetingUrl: z.string().nullable(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
export const userMetadata = z
|
||||
.object({
|
||||
proPaidForByTeamId: z.number().optional(),
|
||||
|
||||
Reference in new issue
Block a user