mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-26 17:38:28 +03:00
Replace "warning" with "tip" in responses from postWarning.ts
This commit is contained in:
@@ -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" = ?',
|
||||
[reason, userID, previousWarning.issueTime]
|
||||
);
|
||||
resultStatus = "re-enabled";
|
||||
resultStatus = "re-enabled for";
|
||||
} else {
|
||||
return res.sendStatus(409);
|
||||
}
|
||||
@@ -90,7 +90,7 @@ export async function postWarning(req: Request, res: Response): Promise<Response
|
||||
}
|
||||
|
||||
return res.status(200).json({
|
||||
message: `Warning ${resultStatus} user '${userID}'.`,
|
||||
message: `Tip ${resultStatus} user '${userID}'.`,
|
||||
});
|
||||
} catch (e) {
|
||||
Logger.error(e as string);
|
||||
|
||||
Reference in New Issue
Block a user