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', [