Update app/controllers/api/databases.php

Co-authored-by: Jake Barnby <jakeb994@gmail.com>
This commit is contained in:
Shmuel Fogel
2023-02-28 18:39:11 +02:00
committed by GitHub
co-authored by Jake Barnby
parent 3964e86340
commit ae981d90c9
+1 -1
View File
@@ -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([