From 32fea90efb704a6b00ef28911eba4d0701e620b8 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Wed, 7 Aug 2019 10:02:00 +0300 Subject: [PATCH] enabled stats --- app/controllers/projects.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/projects.php b/app/controllers/projects.php index d891bf1373..aafa295866 100644 --- a/app/controllers/projects.php +++ b/app/controllers/projects.php @@ -198,12 +198,12 @@ $utopia->get('/v1/projects/:projectId/usage') $response->json([ 'requests' => [ - //'data' => $requests, - //'total' => array_sum(array_map(function($item) {return $item['value'];}, $requests)), + 'data' => $requests, + 'total' => array_sum(array_map(function($item) {return $item['value'];}, $requests)), ], 'network' => [ - //'data' => $network, - //'total' => array_sum(array_map(function($item) {return $item['value'];}, $network)), + 'data' => $network, + 'total' => array_sum(array_map(function($item) {return $item['value'];}, $network)), ], 'collections' => [ 'data' => $collections,