mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-09-20 04:54:00 +02:00
Allow removing warnings created by anyone
This commit is contained in:
parent
0b967b9f45
commit
b9bcc35dd2
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue