From 472e2c282df930fa708c9050eff4d61be6f8ab39 Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 28 Dec 2025 14:31:46 +0200 Subject: [PATCH] skip specific filters --- src/Appwrite/Platform/Workers/StatsResources.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Appwrite/Platform/Workers/StatsResources.php b/src/Appwrite/Platform/Workers/StatsResources.php index 407cbfca8a..f23fe09430 100644 --- a/src/Appwrite/Platform/Workers/StatsResources.php +++ b/src/Appwrite/Platform/Workers/StatsResources.php @@ -180,25 +180,25 @@ class StatsResources extends Action } try { - $this->countForBuckets($dbForProject, $dbForLogs, $region); + $dbForProject->skipFilters(fn () => $this->countForBuckets($dbForProject, $dbForLogs, $region), $this->filters); } catch (Throwable $th) { call_user_func_array($this->logError, [$th, "StatsResources", "count_for_buckets_{$project->getId()}"]); } try { - $this->countImageTransformations($dbForProject, $dbForLogs, $region); + $dbForProject->skipFilters(fn () => $this->countImageTransformations($dbForProject, $dbForLogs, $region), $this->filters); } catch (Throwable $th) { call_user_func_array($this->logError, [$th, "StatsResources", "count_for_buckets_{$project->getId()}"]); } try { - $this->countForDatabase($dbForProject, $region); + $dbForProject->skipFilters(fn () => $this->countForDatabase($dbForProject, $region), $this->filters); } catch (Throwable $th) { call_user_func_array($this->logError, [$th, "StatsResources", "count_for_database_{$project->getId()}"]); } try { - $dbForProject->skipFilters(fn () => $this->countForSitesAndFunctions($dbForProject, $region)); + $dbForProject->skipFilters(fn () => $this->countForSitesAndFunctions($dbForProject, $region), $this->filters); } catch (Throwable $th) { call_user_func_array($this->logError, [$th, "StatsResources", "count_for_functions_{$project->getId()}"]); }