Skip to content

Commit

Permalink
Merge pull request #11354 from bdach/multiplayer-include-position
Browse files Browse the repository at this point in the history
Include user score position when indexing playlist item scores
  • Loading branch information
nanaya authored Jul 24, 2024
2 parents f27868c + 402bf74 commit c291e8d
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 c291e8d

Please sign in to comment.