diff --git a/src/Appwrite/Platform/Workers/Hamster.php b/src/Appwrite/Platform/Workers/Hamster.php index 0fb705d0f7..bd64681f00 100644 --- a/src/Appwrite/Platform/Workers/Hamster.php +++ b/src/Appwrite/Platform/Workers/Hamster.php @@ -394,7 +394,7 @@ class Hamster extends Action /** Number of projects in this organization */ $statsPerOrganization['projects'] = $dbForConsole->count('projects', [ - Query::equal('teamId', [$organization->getId()]), + Query::equal('teamInternalId', [$organization->getInternalId()]), Query::limit(APP_LIMIT_COUNT) ]);