fix deleting webhook (#7159)

This commit is contained in:
Carina Wollendorfer
2023-02-16 21:22:14 +01:00
committed by GitHub
parent 09cc6f07e4
commit f4c849b75c
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1108,6 +1108,7 @@ const loggedInViewerRouter = router({
});
await prisma.webhook.deleteMany({
where: {
userId: ctx.user.id,
appId: "zapier",
},
});
@@ -140,6 +140,7 @@ export const apiKeysRouter = router({
if (apiKeyToDelete && apiKeyToDelete.appId === "zapier") {
await ctx.prisma.webhook.deleteMany({
where: {
userId: ctx.user.id,
appId: "zapier",
},
});