fix: more logging

This commit is contained in:
Agusti Fernandez Pardo committed 2022-05-23 23:23:53 +02:00
1 parent 4629c5d5c7
commit 6099bfb4ee
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ async function createOrlistAllEventTypes(
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);
console.log(`userid is: ${userId}`, "eventTypes:", data);
// const event_types = data.map(
// async (eventType) => await schemaEventTypeReadPublic.safeParseAsync(eventType)
// );