diff --git a/projects/backend/src/service/score.service.ts b/projects/backend/src/service/score.service.ts index 5f85de0..0622bce 100644 --- a/projects/backend/src/service/score.service.ts +++ b/projects/backend/src/service/score.service.ts @@ -373,6 +373,11 @@ export class ScoreService { score.additionalData = additionalData; } + const previousScore = await this.getPreviousScore(score.playerId, leaderboard.id + "", score.timestamp); + if (previousScore) { + score.previousScore = previousScore; + } + scores.push({ score: score, leaderboard: leaderboard,