fix: recurring and metadata as jsonSchema on read too

This commit is contained in:
Agusti Fernandez Pardo committed 2022-05-18 15:23:18 +02:00
1 parent d5ecb383b4
commit f29124866c
1 file changed
+9 -1
+9 -1
View File
@@ -85,4 +85,12 @@ export const schemaEventTypeReadPublic = EventType.pick({
currency: true,
slotInterval: true,
successRedirectUrl: true,
}).partial();
description: true,
})
.merge(
z.object({
recurringEvent: jsonSchema.nullable(),
metadata: jsonSchema.nullable(),
})
)
.strict();