commit
14aca7ef2b
|
@ -33,6 +33,7 @@ async function createOrlistAllEventTypes(
|
||||||
.findMany({ where: { userId } })
|
.findMany({ where: { userId } })
|
||||||
.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 }));
|
||||||
console.log("eventTypes:", data);
|
console.log("eventTypes:", data);
|
||||||
|
console.log("userId:", userId);
|
||||||
// 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