From b7349f0226e4f6ac1d9a7ecea6c8966d7aae7183 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 21 Oct 2024 07:45:23 +0100 Subject: [PATCH] fix scores history being reset for that day --- projects/backend/src/service/player.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/backend/src/service/player.service.ts b/projects/backend/src/service/player.service.ts index bb3a7fb..9f61291 100644 --- a/projects/backend/src/service/player.service.ts +++ b/projects/backend/src/service/player.service.ts @@ -151,6 +151,7 @@ export class PlayerService { averageRankedAccuracy: scoreStats.averageRankedAccuracy, }; history.scores = { + ...history.scores, totalScores: scoreStats.totalPlayCount, totalRankedScores: scoreStats.rankedPlayCount, };