Scheduling infrastructure for absolutely everyone.
fix: remove comments
Agusti Fernandez Pardo2009e6f0fb5d
diff --git a/pages/api/event-type-custom-inputs/index.ts b/pages/api/event-type-custom-inputs/index.tsindex 82c23f85935..5b3b249ab41 100644--- a/pages/api/event-type-custom-inputs/index.ts+++ b/pages/api/event-type-custom-inputs/index.ts@@ -48,12 +48,7 @@ async function createOrlistAllEventTypeCustomInputs(const userId = req.userId;const data = await prisma.eventType.findMany({ where: { userId } });const userEventTypes = data.map((eventType) => eventType.id);- // const userEventTypeCustomInputs = await prisma.eventTypeCustomInput.findMany({- // where: { eventType: userEventTypes },- // });- // const userEventTypeCustomInputIds = userEventTypeCustomInputs.map(- // (eventTypeCustomInput) => eventTypeCustomInput.id- // );+if (method === "GET") {const data = await prisma.eventTypeCustomInput.findMany({ where: { eventType: userEventTypes } });const event_type_custom_inputs = data.map((eventTypeCustomInput) =>