From a9338393f5d35aec1c8f286d3240b100239be762 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 25 Oct 2024 13:37:04 +0100 Subject: [PATCH] add default values for rankedScores and unrankedScores stat --- projects/backend/src/service/player.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/backend/src/service/player.service.ts b/projects/backend/src/service/player.service.ts index db12917..3d2bc1c 100644 --- a/projects/backend/src/service/player.service.ts +++ b/projects/backend/src/service/player.service.ts @@ -151,6 +151,8 @@ export class PlayerService { averageRankedAccuracy: scoreStats.averageRankedAccuracy, }; history.scores = { + rankedScores: 0, + unrankedScores: 0, ...history.scores, totalScores: scoreStats.totalPlayCount, totalRankedScores: scoreStats.rankedPlayCount,