From ae981d90c956b9b42655aaab4b05911db013fda3 Mon Sep 17 00:00:00 2001 From: Shmuel Fogel Date: Tue, 28 Feb 2023 18:39:11 +0200 Subject: [PATCH 1/2] Update app/controllers/api/databases.php Co-authored-by: Jake Barnby --- app/controllers/api/databases.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 1874dadb69..9118d1efc4 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -202,7 +202,7 @@ App::error() $request->getParam('queries') ])); - /* @var $document Document */ + /** @var Document $document */ $document = Authorization::skip(fn() => $dbForProject->getDocument('slowQueries', $key)); if ($document->isEmpty()) { $document = Authorization::skip(fn()=>$dbForProject->createDocument('slowQueries', new Document([ From 707c8033b8c0b36e63425c8cb219779fe185e7da Mon Sep 17 00:00:00 2001 From: Shmuel Fogel Date: Tue, 28 Feb 2023 19:21:12 +0200 Subject: [PATCH 2/2] Update app/controllers/api/databases.php Co-authored-by: Jake Barnby --- app/controllers/api/databases.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 9118d1efc4..0af79aa9cb 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -2881,7 +2881,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/usage') }); App::get('/v1/databases/:databaseId/slow-queries') - ->desc('List Slow queries Documents') + ->desc('List Slow Queries Documents') ->groups(['api', 'database']) ->label('docs', false) ->label('sdk.hide', true)