diff --git a/.gitignore b/.gitignore index b5bfe3f..81b036d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ node_modules/ docker-compose.yml +package-lock.json # Environment variables — never commit these .env diff --git a/package.json b/package.json index e489686..69e626f 100644 --- a/package.json +++ b/package.json @@ -14,11 +14,11 @@ "node-cron": "^3.0.3" }, "devDependencies": { - "@types/node": "^20.0.0", + "@types/node": "^20.19.41", "@types/node-cron": "^3.0.0", "nodemon": "^3.1.0", "ts-node": "^10.9.2", - "typescript": "^5.4.0", - "tsconfig-paths": "^4.2.0" + "tsconfig-paths": "^4.2.0", + "typescript": "^5.4.0" } } \ No newline at end of file diff --git a/src/systems/history.ts b/src/systems/history.ts index 9ca89e8..2a8423e 100644 --- a/src/systems/history.ts +++ b/src/systems/history.ts @@ -42,7 +42,7 @@ export function upsertScore(score: TGScore): void { // Overwrite existing score for this player+slot result.scores = result.scores.filter( - (s) => !(s.userKey === score.userKey && s.slot === score.slot && s.date === score.date) + (s) => !(s.userKey === score.userKey && s.characterName === score.characterName && s.slot === score.slot && s.date === score.date) ); result.scores.push(score); saveResult(result);