Skip to content

Scheduling infrastructure for absolutely everyone.

--fix null estimated value

Syed Ali Shahbazf9c20bc8ce35
diff --git a/pages/api/bookings/index.ts b/pages/api/bookings/index.ts
index 2a11672e32c..73c4e8d12b5 100644
--- a/pages/api/bookings/index.ts
+++ b/pages/api/bookings/index.ts
@@ -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) =>