Fixes event type deletion (#906)
parent
69c808333e
commit
683713e73f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue