diff --git a/src/Api/StatsControllerProvider.php b/src/Api/StatsControllerProvider.php index 3c8c83d..a44cf2c 100644 --- a/src/Api/StatsControllerProvider.php +++ b/src/Api/StatsControllerProvider.php @@ -38,13 +38,13 @@ class StatsControllerProvider implements ControllerProviderInterface ], ]; - for ($i=0; $i < 14; $i++) { + for ($i=0; $i < 61; $i++) { $day = date('Y-m-d',strtotime("-$i days")); $stats['games']['new'][$day] = $gameRepo->getCreatedCountOnDate($day); } $stats['games']['total'] = $gameRepo->getCount(); - + return new CustomJsonResponse($stats, function($data) use ($app){return $app['serializer']->serialize($data, 'json');}, 200); });