Stats per day
This commit is contained in:
parent
5c95018ddf
commit
851849f2a8
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class StatsControllerProvider implements ControllerProviderInterface
|
|||
$day = date('Y-m-d',strtotime("-$i days"));
|
||||
$stats['new_games'][$day] = $gameRepo->getCreatedCountOnDate($day);
|
||||
}
|
||||
return $app['serializer']->serialize($stats, 'json');
|
||||
return new CustomJsonResponse($stats, function($data) use ($app){return $app['serializer']->serialize($data, 'json');}, 200);
|
||||
});
|
||||
|
||||
return $controllers;
|
||||
|
|
Loading…
Reference in a new issue