fix unban query hitting limit, use number as type

This commit is contained in:
Michael C
2023-02-25 00:04:15 -05:00
parent d76ee7cd22
commit 8495a9d6c0
3 changed files with 20 additions and 36 deletions

View File

@@ -554,7 +554,7 @@ export async function postSkipSegments(req: Request, res: Response): Promise<Res
if (!userBanCount && ipBanCount) {
// Make sure the whole user is banned
banUser(userID, true, true, "1", config.categoryList as Category[])
banUser(userID, true, true, 1, config.categoryList as Category[])
.catch((e) => Logger.error(`Error banning user after submitting from a banned IP: ${e}`));
}