fix: dont merge base params

pull/9078/head
Agusti Fernandez Pardo 2022-05-17 22:17:05 +02:00
parent 5072ac7d52
commit 4d6dbd39cd
1 changed files with 3 additions and 4 deletions

View File

@ -32,7 +32,7 @@ export const schemaEventTypeBaseBodyParams = EventType.pick({
successRedirectUrl: true,
}).partial();
const schemaEventTypeBaseParams = z
// const schemaEventTypeBaseParams = z
.object({
title: z.string(),
slug: z.string(),
@ -83,7 +83,6 @@ export const schemaEventTypeReadPublic = EventType.pick({
price: true,
currency: true,
slotInterval: true,
metadata: true,
successRedirectUrl: true,
})
.merge(schemaEventTypeBaseParams)
.partial();
}).partial();