Add GET /interface/games/last
This commit is contained in:
parent
cc5c7ea11c
commit
cce341b8de
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface
|
|||
/* @var $hitRepo EmotionHero\Models\HitRepository */
|
||||
$hitRepo = $this->_eh->getEm()->getRepository(\EmotionHero\Models\Hit::class);
|
||||
|
||||
$game = $gameRepo->findOneBy([], ['id'=>'DESC']);
|
||||
$game = $gameRepo->findOneBy([], ['createdAt'=>'DESC']);
|
||||
|
||||
// id
|
||||
// score
|
||||
|
|
Loading…
Reference in a new issue