fix deleting webhook (#7159)
parent
09cc6f07e4
commit
f4c849b75c
|
@ -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",
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue