Rename $collectionDocument
This commit is contained in:
parent
af34f195c6
commit
1474bd65b0
1 changed files with 2 additions and 2 deletions
|
@ -1622,8 +1622,8 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/attributes/relati
|
||||||
throw new Exception(Exception::DATABASE_NOT_FOUND);
|
throw new Exception(Exception::DATABASE_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
||||||
$collectionDocument = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId);
|
$collection = $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId);
|
||||||
$collection = $dbForProject->getCollection('database_' . $database->getInternalId() . '_collection_' . $collectionDocument->getInternalId());
|
$collection = $dbForProject->getCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId());
|
||||||
|
|
||||||
if ($collection->isEmpty()) {
|
if ($collection->isEmpty()) {
|
||||||
throw new Exception(Exception::COLLECTION_NOT_FOUND);
|
throw new Exception(Exception::COLLECTION_NOT_FOUND);
|
||||||
|
|
Loading…
Reference in a new issue