Skip to content

Commit

Permalink
Include user score position when indexing playlist item scores
Browse files Browse the repository at this point in the history
Needed for daily challenge (without this client can't show position
numbers for the user score on the leaderboard).
  • Loading branch information
bdach committed Jul 24, 2024
1 parent 65850df commit d77b27b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@ public function index($roomId, $playlistId)
)->first();

if ($userHighScoreLink !== null) {
$userScoreJson = json_item($userHighScoreLink, $transformer, ScoreTransformer::MULTIPLAYER_BASE_INCLUDES);
$userScoreJson = json_item(
$userHighScoreLink,
$transformer,
[
...ScoreTransformer::MULTIPLAYER_BASE_INCLUDES,
'position',
]
);
}
}

Expand Down

0 comments on commit d77b27b

Please sign in to comment.