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:
authored and GitHub committed 2022-09-05 13:13:49 -06:00
1 parent 52b2ce8774
commit 49a379ec6c
2 files changed
+20 -4

No files matched your search

+8
View File
@@ -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(),