fix deleting webhook (#7159)
This commit is contained in:
@@ -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",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user