fix event types
This commit is contained in:
1 parent
47ce92714b
commit
075808ce40
2 files changed
+4
-2
No files matched your search
@@ -30,7 +30,7 @@ async function createOrlistAllEventTypes(
|
||||
* description: No event types were found
|
||||
*/
|
||||
const data = await prisma.eventType.findMany({ where: { userId } });
|
||||
const event_types = data.map((eventType) => (eventType.metadata = {}));
|
||||
const event_types = data.map((eventType) => schemaEventTypeReadPublic.parse(eventType));
|
||||
if (event_types) res.status(200).json({ event_types });
|
||||
else
|
||||
(error: Error) =>
|
||||
|
||||
Reference in new issue
Block a user