From 7a89779827731c4036c7b852253002ca17fc3307 Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 28 Dec 2025 14:17:48 +0200 Subject: [PATCH] revert --- src/Appwrite/Platform/Action.php | 2 +- src/Appwrite/Platform/Workers/StatsResources.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Action.php b/src/Appwrite/Platform/Action.php index e2df7652b7..3db0c74d45 100644 --- a/src/Appwrite/Platform/Action.php +++ b/src/Appwrite/Platform/Action.php @@ -46,7 +46,7 @@ class Action extends UtopiaAction * * @return void */ - protected function foreachDocument(Database $database, string $collection, array $queries = [], callable $callback = null, int $limit = 1000, bool $concurrent = false, bool $filters = true): void + protected function foreachDocument(Database $database, string $collection, array $queries = [], callable $callback = null, int $limit = 1000, bool $concurrent = false): void { $results = []; $sum = $limit; diff --git a/src/Appwrite/Platform/Workers/StatsResources.php b/src/Appwrite/Platform/Workers/StatsResources.php index 8fd74a6b89..407cbfca8a 100644 --- a/src/Appwrite/Platform/Workers/StatsResources.php +++ b/src/Appwrite/Platform/Workers/StatsResources.php @@ -99,10 +99,9 @@ class StatsResources extends Action Console::error($th->getMessage()); return; } - - $this->disableSubqueries(); try { + $region = $project->getAttribute('region'); $platforms = $dbForPlatform->count('platforms', [