diff --git a/packages/trpc/server/routers/viewer.tsx b/packages/trpc/server/routers/viewer.tsx index ffa9e944da..e4a7f9ec6c 100644 --- a/packages/trpc/server/routers/viewer.tsx +++ b/packages/trpc/server/routers/viewer.tsx @@ -1108,6 +1108,7 @@ const loggedInViewerRouter = router({ }); await prisma.webhook.deleteMany({ where: { + userId: ctx.user.id, appId: "zapier", }, }); diff --git a/packages/trpc/server/routers/viewer/apiKeys.tsx b/packages/trpc/server/routers/viewer/apiKeys.tsx index 6c68aa6bf1..72f5547e5e 100644 --- a/packages/trpc/server/routers/viewer/apiKeys.tsx +++ b/packages/trpc/server/routers/viewer/apiKeys.tsx @@ -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", }, });