parseQueries
This commit is contained in:
parent
ace75b0786
commit
4018224cc6
1 changed files with 0 additions and 6 deletions
|
@ -19,7 +19,6 @@ use Utopia\App;
|
||||||
use Utopia\Audit\Audit;
|
use Utopia\Audit\Audit;
|
||||||
use Utopia\Config\Config;
|
use Utopia\Config\Config;
|
||||||
use Utopia\Database\Database;
|
use Utopia\Database\Database;
|
||||||
use Utopia\Database\DateTime;
|
|
||||||
use Utopia\Database\Document;
|
use Utopia\Database\Document;
|
||||||
use Utopia\Database\Exception\Authorization as AuthorizationException;
|
use Utopia\Database\Exception\Authorization as AuthorizationException;
|
||||||
use Utopia\Database\Exception\Conflict as ConflictException;
|
use Utopia\Database\Exception\Conflict as ConflictException;
|
||||||
|
@ -3079,11 +3078,6 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documen
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$queries = Query::parseQueries($queries);
|
$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);
|
$document = $dbForProject->getDocument('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId(), $documentId, $queries);
|
||||||
} catch (AuthorizationException) {
|
} catch (AuthorizationException) {
|
||||||
throw new Exception(Exception::USER_UNAUTHORIZED);
|
throw new Exception(Exception::USER_UNAUTHORIZED);
|
||||||
|
|
Loading…
Reference in a new issue