mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Replace "warning" with "tip" in responses from postWarning.ts
This commit is contained in:
parent
65e7d24b7d
commit
934ce79728
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ export async function postWarning(req: Request, res: Response): Promise<Response
|
||||||
"run", 'UPDATE "warnings" SET "enabled" = 1, "reason" = ? WHERE "userID" = ? AND "issueTime" = ?',
|
"run", 'UPDATE "warnings" SET "enabled" = 1, "reason" = ? WHERE "userID" = ? AND "issueTime" = ?',
|
||||||
[reason, userID, previousWarning.issueTime]
|
[reason, userID, previousWarning.issueTime]
|
||||||
);
|
);
|
||||||
resultStatus = "re-enabled";
|
resultStatus = "re-enabled for";
|
||||||
} else {
|
} else {
|
||||||
return res.sendStatus(409);
|
return res.sendStatus(409);
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ export async function postWarning(req: Request, res: Response): Promise<Response
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.status(200).json({
|
return res.status(200).json({
|
||||||
message: `Warning ${resultStatus} user '${userID}'.`,
|
message: `Tip ${resultStatus} user '${userID}'.`,
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Logger.error(e as string);
|
Logger.error(e as string);
|
||||||
|
|
Loading…
Reference in a new issue