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:34:38 +02:00
committed by GitHub
parent 5a1ac151d9
commit 3964e86340
+1 -1
View File
@@ -161,7 +161,7 @@ App::init()
$request->getURI(), // Contains databaseId & collectionId
$request->getParam('queries')
]));
/* @var $document Document */
/** @var Document $document */
$document = Authorization::skip(fn() => $dbForProject->getDocument('slowQueries', $key));
if ($document->getAttribute('blocked') === true) {
throw new Exception(Exception::TIMEOUT_BLOCKED);