Merge branch 'main' into production

This commit is contained in:
Agusti Fernandez Pardo authored and GitHub committed 2022-05-27 21:19:43 +02:00
commit 458f37f5e9
1 file changed
-1
-1
View File
@@ -36,7 +36,6 @@ async function createOrlistAllEventTypes(
select: { eventTypes: true },
})
.catch((error) => res.status(404).json({ message: "No event types were found", error }));
if (data) res.status(200).json({ event_types: data.eventTypes });
else
(error: Error) =>