Fixes event type deletion (#906)

pull/858/head
Alex van Andel 2021-10-11 20:56:03 +01:00 committed by GitHub
parent 69c808333e
commit 683713e73f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -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,