Update npm scripts
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled

This commit is contained in:
Mia 2025-08-21 20:56:42 -05:00
parent b08144d831
commit ca6d979e5a
2 changed files with 6 additions and 5 deletions

View File

@ -8,10 +8,10 @@
"lint": "eslint --cache --max-warnings 0",
"build": "npx tsc",
"run": "npx tsc && node .dist/src/",
"start": "npx tsc && npx pm2 start config/pm2.js",
"start": "npx tsc && npx pm2 start loginserver",
"test": "npm run lint && npx tsc",
"reload": "npx tsc && npx pm2 reload config/pm2.js",
"stop": "npx pm2 stop config/pm2.js"
"reload": "npx tsc && npx pm2 reload loginserver",
"stop": "npx pm2 stop loginserver"
},
"dependencies": {
"bcrypt": "^5.0.1",

View File

@ -115,7 +115,8 @@ export function checkSuspectVerified(
const userData: Partial<{ elo: number, gxe: number, coil: number }> = {};
const reqKeys = ['elo', 'coil', 'gxe'] as const;
for (const k of reqKeys) {
if (!suspect[k]) continue;
const val = suspect[k];
if (!val) continue;
reqCount++;
switch (k) {
case 'coil':
@ -127,7 +128,7 @@ export function checkSuspectVerified(
userData.coil = coilNum;
break;
case 'elo': case 'gxe':
if (suspect[k] && rating[k] >= suspect[k]!) {
if (rating[k] >= val) {
reqsMet++;
}
userData[k] = rating[k];