Allow removing warnings created by anyone

This commit is contained in:
Ajay Ramachandran
2021-06-17 19:08:36 -04:00
committed by GitHub
parent 0b967b9f45
commit b9bcc35dd2

View File

@@ -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";
}