getCollectionId

This commit is contained in:
fogelito
2026-03-23 17:43:06 +02:00
parent b1fadcf65e
commit 0051bf5e26
2 changed files with 6 additions and 6 deletions
Generated
+4 -4
View File
@@ -3854,12 +3854,12 @@
"source": {
"type": "git",
"url": "https://github.com/utopia-php/database.git",
"reference": "89be130a4ba1b6317e00d4f0198231e54c9a5c42"
"reference": "d77451fe435f0cfeda96a4fa185b95f08c038ee3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/database/zipball/89be130a4ba1b6317e00d4f0198231e54c9a5c42",
"reference": "89be130a4ba1b6317e00d4f0198231e54c9a5c42",
"url": "https://api.github.com/repos/utopia-php/database/zipball/d77451fe435f0cfeda96a4fa185b95f08c038ee3",
"reference": "d77451fe435f0cfeda96a4fa185b95f08c038ee3",
"shasum": ""
},
"require": {
@@ -3936,7 +3936,7 @@
"source": "https://github.com/utopia-php/database/tree/joins8",
"issues": "https://github.com/utopia-php/database/issues"
},
"time": "2026-03-23T08:10:06+00:00"
"time": "2026-03-23T15:34:13+00:00"
},
{
"name": "utopia-php/detector",
@@ -105,10 +105,10 @@ class XList extends Action
$joins = Query::getJoinQueries($queries, false);
foreach ($joins as $join) {
$col = $authorization->skip(fn () => $dbForProject->getDocument('database_' . $database->getSequence(), $join->getCollection()));
$col = $authorization->skip(fn () => $dbForProject->getDocument('database_' . $database->getSequence(), $join->getCollectionId()));
if ($col->isEmpty() || (!$col->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) {
throw new Exception($this->getParentNotFoundException(), params: [$join->getCollection()]);
throw new Exception($this->getParentNotFoundException(), params: [$join->getCollectionId()]);
}
$collectionTableId = 'database_' . $database->getSequence() . '_collection_' . $col->getSequence();