mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-13 15:06:59 +03:00
Merge pull request #559 from mini-bomba/✝️ℹ️🅿️
Replace "warning" with "tip" in responses from postWarning.ts
This commit is contained in:
@@ -62,7 +62,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);
|
||||
}
|
||||
@@ -93,7 +93,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