From b9bcc35dd279155b46c3ffc4208ae8933c3a2d82 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 17 Jun 2021 19:08:36 -0400 Subject: [PATCH] Allow removing warnings created by anyone --- src/routes/postWarning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/postWarning.ts b/src/routes/postWarning.ts index a5e720c..1734012 100644 --- a/src/routes/postWarning.ts +++ b/src/routes/postWarning.ts @@ -32,7 +32,7 @@ export async function postWarning(req: Request, res: Response) { return; } } else { - await db.prepare('run', 'UPDATE "warnings" SET "enabled" = 0 WHERE "userID" = ? AND "issuerUserID" = ?', [userID, issuerUserID]); + await db.prepare('run', 'UPDATE "warnings" SET "enabled" = 0 WHERE "userID" = ?', [userID]); resultStatus = "removed from"; }