fix: adds console log to debug event-types
parent
82da509eac
commit
418a4271d9
|
@ -29,7 +29,10 @@ async function createOrlistAllEventTypes(
|
||||||
* 404:
|
* 404:
|
||||||
* description: No event types were found
|
* 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(
|
// const event_types = data.map(
|
||||||
// async (eventType) => await schemaEventTypeReadPublic.safeParseAsync(eventType)
|
// async (eventType) => await schemaEventTypeReadPublic.safeParseAsync(eventType)
|
||||||
// );
|
// );
|
||||||
|
|
Loading…
Reference in New Issue