fix: adds console log to debug event-types

pull/9078/head
Agusti Fernandez Pardo 2022-05-20 03:46:01 +02:00
parent 82da509eac
commit 418a4271d9
1 changed files with 4 additions and 1 deletions

View File

@ -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)
// );