Add GET /interface/games/last

This commit is contained in:
Ruben 2016-11-03 02:19:07 +01:00
parent cc5c7ea11c
commit cce341b8de
1 changed files with 1 additions and 1 deletions

View File

@ -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