1
0
Fork 0
mirror of synced 2024-10-01 17:58:02 +13:00
This commit is contained in:
fogelito 2024-02-08 18:18:39 +02:00
parent 7176d7feab
commit bcc6564e5b

View file

@ -2945,7 +2945,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents')
} catch (AuthorizationException) {
throw new Exception(Exception::USER_UNAUTHORIZED);
} catch (QueryException $e) {
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, $e->getMessage()); // Should this GENERAL_QUERY_INVALID? or 500 is ok?
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, $e->getMessage()); // Should this be GENERAL_QUERY_INVALID? or 500 is ok?
}
// Add $collectionId and $databaseId for all documents