Scheduling infrastructure for absolutely everyone.
fix: adds console log to debug event-types
Agusti Fernandez Pardo418a4271d936
diff --git a/pages/api/event-types/index.ts b/pages/api/event-types/index.tsindex 420983a162c..a349cb3f92c 100644--- a/pages/api/event-types/index.ts+++ b/pages/api/event-types/index.ts@@ -29,7 +29,10 @@ async function createOrlistAllEventTypes(* 404:* description: No event types were found*/- const data = await prisma.eventType.findMany({ where: { userId } });+ const data = await prisma.eventType+ .findMany({ where: { userId } })+ .catch((error) => res.status(404).json({ message: "No event types were found", error }));+ console.log("eventTypes:", data);// const event_types = data.map(// async (eventType) => await schemaEventTypeReadPublic.safeParseAsync(eventType)// );