Add ranking to /interfaces/games/last
This commit is contained in:
parent
cce341b8de
commit
93ddb4a216
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface
|
|||
$output = [
|
||||
'id' => $game->getId(),
|
||||
'level' => $game->getLevel()->getName(),
|
||||
'ranking' => $gameRepo->getPositionForGame($game),
|
||||
'score' => $game->getScore(),
|
||||
'achievements' => $game->getAchievements()->count(),
|
||||
'time' => $game->getCreatedAt()->format("Y-m-d H:i:s"),
|
||||
|
|
Loading…
Reference in a new issue