Merge pull request #87 from calcom/fix/add-console-events
fix: adds console log to debug event-typespull/9078/head
commit
8ae59a5637
|
@ -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)
|
||||
// );
|
||||
|
|
Loading…
Reference in New Issue