mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Allow removing warnings created by anyone
This commit is contained in:
committed by
GitHub
parent
0b967b9f45
commit
b9bcc35dd2
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user