diff --git a/pages/api/event-types/index.ts b/pages/api/event-types/index.ts index b5c82ef67d..0e2467692f 100644 --- a/pages/api/event-types/index.ts +++ b/pages/api/event-types/index.ts @@ -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) =>