diff --git a/Server/application/superadmin/controller/company/GetCompanyDetailForProfileController.php b/Server/application/superadmin/controller/company/GetCompanyDetailForProfileController.php index 7c51ecfa..b1064530 100644 --- a/Server/application/superadmin/controller/company/GetCompanyDetailForProfileController.php +++ b/Server/application/superadmin/controller/company/GetCompanyDetailForProfileController.php @@ -60,7 +60,9 @@ class GetCompanyDetailForProfileController extends BaseController */ protected function getUsersCountByCompanyId(int $companyId): int { - return UserModel::where('companyId', $companyId)->count(); + $where = array_merge(compact('companyId'), array('isAdmin' => 0)); + + return UserModel::where($where)->count(); } /**