From de3768559f4669e52e6ed1be2fbd757155a60016 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 27 Oct 2024 13:35:45 +0000 Subject: [PATCH] include today in seeding player history --- projects/backend/src/service/player.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/backend/src/service/player.service.ts b/projects/backend/src/service/player.service.ts index 5f237b5..eb30083 100644 --- a/projects/backend/src/service/player.service.ts +++ b/projects/backend/src/service/player.service.ts @@ -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