Scheduling infrastructure for absolutely everyone.
Ensure you can only delete your own credentials
Bailey Pumfleeteabb096e14e7
diff --git a/pages/api/integrations.ts b/pages/api/integrations.tsindex 0fad208f030..463ecd9b4fc 100644--- a/pages/api/integrations.ts+++ b/pages/api/integrations.ts@@ -37,6 +37,7 @@ export default async function handler(req, res) {await prisma.credential.delete({where: {id: id,+ userId: session.user.id,},});