diff --git a/src/Appwrite/Platform/Workers/StatsResources.php b/src/Appwrite/Platform/Workers/StatsResources.php index 618cd8d39a..e462d4c404 100644 --- a/src/Appwrite/Platform/Workers/StatsResources.php +++ b/src/Appwrite/Platform/Workers/StatsResources.php @@ -199,7 +199,7 @@ class StatsResources extends Action } try { - $this->countForFunctions($dbForProject, $dbForLogs, $region); + $this->countForSitesAndFunctions($dbForProject, $region); } catch (Throwable $th) { call_user_func_array($this->logError, [$th, "StatsResources", "count_for_functions_{$project->getId()}"]); }