Scheduling infrastructure for absolutely everyone.
removed invalid response
Syed Ali Shahbaz719e21497b58
diff --git a/pages/api/bookings/index.ts b/pages/api/bookings/index.tsindex 6bd220aaf51..af20e851fee 100644--- a/pages/api/bookings/index.ts+++ b/pages/api/bookings/index.ts@@ -92,12 +92,9 @@ async function createOrlistAllBookings(const eventType = await prisma.eventType.findUnique({ where: { id: booking.eventTypeId as number } }).then((data) => schemaEventTypeReadPublic.parse(data))- .catch((error: Error) =>- res.status(404).json({- message: `EventType with id: ${booking.eventTypeId} not found`,- error,- })- );+ .catch((e: Error) => {+ console.error(`Event type with ID: ${booking.eventTypeId} not found`, e);+ });const evt = {type: eventType?.title || booking.title,title: booking.title,