include today in seeding player history
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 42s

This commit is contained in:
Lee 2024-10-27 13:35:45 +00:00
parent 4be0b072b2
commit de3768559f

View File

@ -93,7 +93,7 @@ export class PlayerService {
});
playerRankHistory.push(playerToken.rank);
let daysAgo = 1; // Start from yesterday
let daysAgo = 0; // Start from today
for (let i = playerRankHistory.length - daysAgo - 1; i >= 0; i--) {
const rank = playerRankHistory[i];
// Skip inactive days