mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Apply rootResourceId/rootResourceType guard in exportPlatforms
This commit is contained in:
1 parent
4fc5fc3502
commit
d7b51752dc
1 file changed
+5
@@ -2326,6 +2326,11 @@ class Appwrite extends Source
|
||||
while (true) {
|
||||
$queries = [Query::limit($batchSize)];
|
||||
|
||||
if ($this->rootResourceId !== '' && $this->rootResourceType === Resource::TYPE_PLATFORM) {
|
||||
$queries[] = Query::equal('$id', $this->rootResourceId);
|
||||
$queries[] = Query::limit(1);
|
||||
}
|
||||
|
||||
if ($lastId !== null) {
|
||||
$queries[] = Query::cursorAfter($lastId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user