fix deleting webhook (#7159)

pull/7161/head
Carina Wollendorfer 2023-02-16 15:22:14 -05:00 committed by GitHub
parent 09cc6f07e4
commit f4c849b75c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -1108,6 +1108,7 @@ const loggedInViewerRouter = router({
});
await prisma.webhook.deleteMany({
where: {
userId: ctx.user.id,
appId: "zapier",
},
});

View File

@ -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",
},
});