commit
81d2917a3d
|
@ -36,9 +36,6 @@ async function createOrlistAllEventTypes(
|
||||||
select: { eventTypes: true },
|
select: { eventTypes: true },
|
||||||
})
|
})
|
||||||
.catch((error) => res.status(404).json({ message: "No event types were found", error }));
|
.catch((error) => res.status(404).json({ message: "No event types were found", error }));
|
||||||
// const event_types = data.map(
|
|
||||||
// async (eventType) => await schemaEventTypeReadPublic.safeParseAsync(eventType)
|
|
||||||
// );
|
|
||||||
if (data) res.status(200).json({ event_types: data.eventTypes });
|
if (data) res.status(200).json({ event_types: data.eventTypes });
|
||||||
else
|
else
|
||||||
(error: Error) =>
|
(error: Error) =>
|
||||||
|
|
Loading…
Reference in New Issue