Scheduling infrastructure for absolutely everyone.
fix event types
Agusti Fernandez Pardof40e79976906
diff --git a/pages/api/event-types/index.ts b/pages/api/event-types/index.tsindex 57ebba1ce48..ceb8ef269b7 100644--- a/pages/api/event-types/index.ts+++ b/pages/api/event-types/index.ts@@ -37,16 +37,13 @@ async function createOrlistAllEventTypes(select: { eventTypes: true },}).catch((error) => res.status(404).json({ message: "No event types were found", error }));-<<<<<<< HEAD-if (data) res.status(200).json({ event_types: data.eventTypes });-=======+console.log(`userid is: ${userId}`, "eventTypes:", data);// const event_types = data.map(// async (eventType) => await schemaEventTypeReadPublic.safeParseAsync(eventType)// );- if (data) res.status(200).json({ event_types: data });->>>>>>> 6099bfb (fix: more logging)+ if (data) res.status(200).json({ event_types: data.eventTypes });else(error: Error) =>res.status(404).json({