From 683713e73f67faa3bc7053948294e8529e803afb Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Mon, 11 Oct 2021 20:56:03 +0100 Subject: [PATCH] Fixes event type deletion (#906) --- pages/api/availability/eventtype.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pages/api/availability/eventtype.ts b/pages/api/availability/eventtype.ts index 188b04b6d3..569d3e69ba 100644 --- a/pages/api/availability/eventtype.ts +++ b/pages/api/availability/eventtype.ts @@ -177,12 +177,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) }, }); - await prisma.webhookEventTypes.deleteMany({ - where: { - eventTypeId: req.body.id, - }, - }); - await prisma.eventType.delete({ where: { id: req.body.id,