--fix null estimated value

pull/9078/head
Syed Ali Shahbaz 2022-06-10 12:53:59 +05:30
parent 4f36681006
commit f9c20bc8ce
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ async function createOrlistAllBookings(
// Create Calendar Event for webhook payload
const eventType = await prisma.eventType
.findUnique({ where: { id: booking?.eventTypeId } })
.findUnique({ where: { id: booking.eventTypeId as number } })
.then((data) => schemaEventTypeReadPublic.parse(data))
.then((event_type) => res.status(200).json({ event_type }))
.catch((error: Error) =>