From eccc19e5dc46fa6c087106a77b10da899d19339a Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 6 Sep 2021 12:13:20 +0530 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Damodar Lohani --- app/controllers/api/database.php | 4 ++-- app/controllers/api/functions.php | 2 +- app/controllers/api/projects.php | 2 +- app/controllers/api/storage.php | 2 +- app/controllers/api/users.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/api/database.php b/app/controllers/api/database.php index be0a346047..5a8a599900 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -270,7 +270,7 @@ App::get('/v1/database/usage') if (App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') { $period = [ '24h' => [ - 'period' => '15m', + 'period' => '30m', 'limit' => 48, ], '7d' => [ @@ -369,7 +369,7 @@ App::get('/v1/database/:collectionId/usage') if(App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') { $period = [ '24h' => [ - 'period' => '15m', + 'period' => '30m', 'limit' => 48, ], '7d' => [ diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index fadc323832..2a67c6d4c6 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -171,7 +171,7 @@ App::get('/v1/functions/:functionId/usage') if(App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') { $period = [ '24h' => [ - 'period' => '15m', + 'period' => '30m', 'limit' => 48, ], '7d' => [ diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 0d1c3b713a..3c7dbb8e5e 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -248,7 +248,7 @@ App::get('/v1/projects/:projectId/usage') if (App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') { $period = [ '24h' => [ - 'period' => '15m', + 'period' => '30m', 'limit' => 48, ], '7d' => [ diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 69ed5ba536..b9b2b8e8a1 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -665,7 +665,7 @@ App::get('/v1/storage/usage') if (App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') { $period = [ '24h' => [ - 'period' => '15m', + 'period' => '30m', 'limit' => 48, ], '7d' => [ diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index 48c67daa82..c55f5382f5 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -634,7 +634,7 @@ App::get('/v1/users/usage') if (App::getEnv('_APP_USAGE_STATS', 'enabled') == 'enabled') { $period = [ '24h' => [ - 'period' => '15m', + 'period' => '30m', 'limit' => 48, ], '7d' => [