pull/9078/head
Agusti Fernandez Pardo 2022-05-27 20:47:02 +02:00
parent 46e0b8f4f5
commit d09fa56f63
1 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,16 @@ async function createOrlistAllEventTypes(
select: { eventTypes: true },
})
.catch((error) => res.status(404).json({ message: "No event types were found", error }));
<<<<<<< HEAD
=======
<<<<<<< HEAD
=======
console.log(`userid is: ${userId}`, "eventTypes:", data);
>>>>>>> 6099bfb (fix: more logging)
// const event_types = data.map(
// async (eventType) => await schemaEventTypeReadPublic.safeParseAsync(eventType)
// );
>>>>>>> d374031 (fix: more logging)
if (data) res.status(200).json({ event_types: data.eventTypes });
else
(error: Error) =>