fix: dont merge base params
parent
5072ac7d52
commit
4d6dbd39cd
|
@ -32,7 +32,7 @@ export const schemaEventTypeBaseBodyParams = EventType.pick({
|
||||||
successRedirectUrl: true,
|
successRedirectUrl: true,
|
||||||
}).partial();
|
}).partial();
|
||||||
|
|
||||||
const schemaEventTypeBaseParams = z
|
// const schemaEventTypeBaseParams = z
|
||||||
.object({
|
.object({
|
||||||
title: z.string(),
|
title: z.string(),
|
||||||
slug: z.string(),
|
slug: z.string(),
|
||||||
|
@ -83,7 +83,6 @@ export const schemaEventTypeReadPublic = EventType.pick({
|
||||||
price: true,
|
price: true,
|
||||||
currency: true,
|
currency: true,
|
||||||
slotInterval: true,
|
slotInterval: true,
|
||||||
|
metadata: true,
|
||||||
successRedirectUrl: true,
|
successRedirectUrl: true,
|
||||||
})
|
}).partial();
|
||||||
.merge(schemaEventTypeBaseParams)
|
|
||||||
.partial();
|
|
||||||
|
|
Loading…
Reference in New Issue