feat(usage): cleanup comments

This commit is contained in:
Christy Jacob
2021-08-20 17:40:52 +05:30
parent c36b5b8b30
commit 24925d2eb2
3 changed files with 6 additions and 5 deletions
+2 -3
View File
@@ -249,7 +249,7 @@ App::get('/v1/database/collections/:collectionId')
});
App::get('/v1/database/usage')
->desc('Get Database Usage')
->desc('Get usage stats for the database')
->groups(['api', 'database'])
->label('scope', 'collections.read')
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])
@@ -258,7 +258,6 @@ App::get('/v1/database/usage')
->param('range', '30d', new WhiteList(['24h', '7d', '30d', '90d'], true), 'Date range.', true)
->inject('response')
->inject('dbForInternal')
->inject('register')
->action(function ($range, $response, $dbForInternal) {
/** @var Appwrite\Utopia\Response $response */
/** @var Utopia\Database\Database $dbForConsole */
@@ -399,7 +398,7 @@ App::get('/v1/database/usage')
App::get('/v1/database/:collectionId/usage')
->desc('Get Database Usage for a collection')
->desc('Get usage stats for a collection')
->groups(['api', 'database'])
->label('scope', 'collections.read')
->label('sdk.auth', [APP_AUTH_TYPE_ADMIN])