add default values for rankedScores and unrankedScores stat
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 1m12s

This commit is contained in:
Lee 2024-10-25 13:37:04 +01:00
parent 6d0c6aa47f
commit a9338393f5

View File

@ -151,6 +151,8 @@ export class PlayerService {
averageRankedAccuracy: scoreStats.averageRankedAccuracy,
};
history.scores = {
rankedScores: 0,
unrankedScores: 0,
...history.scores,
totalScores: scoreStats.totalPlayCount,
totalRankedScores: scoreStats.rankedPlayCount,