From 4018224cc6f4e2283cd8181be08860c39e03e685 Mon Sep 17 00:00:00 2001 From: fogelito Date: Mon, 12 Feb 2024 18:06:37 +0200 Subject: [PATCH] parseQueries --- app/controllers/api/databases.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 444ccc1ec9..f0b0783b02 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -19,7 +19,6 @@ use Utopia\App; use Utopia\Audit\Audit; use Utopia\Config\Config; use Utopia\Database\Database; -use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Exception\Authorization as AuthorizationException; use Utopia\Database\Exception\Conflict as ConflictException; @@ -3079,11 +3078,6 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documen try { $queries = Query::parseQueries($queries); - } catch (QueryException $e) { - throw new Exception(Exception::GENERAL_QUERY_INVALID, $e->getMessage()); - } - - try { $document = $dbForProject->getDocument('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $documentId, $queries); } catch (AuthorizationException) { throw new Exception(Exception::USER_UNAUTHORIZED);