diff --git a/app/modules_app/companies/stats.php b/app/modules_app/companies/stats.php index 597f9c7..4de09a7 100644 --- a/app/modules_app/companies/stats.php +++ b/app/modules_app/companies/stats.php @@ -11,7 +11,7 @@ use App\Middleware\AuthMiddleware; $decoded = AuthMiddleware::check(); $db = Database::getInstance(); -$companyId = $_GET['id'] ?? null; +$companyId = $_GET['company_id'] ?? $_GET['id'] ?? null; if (!$companyId) json_error('Company ID is required', 422); $tenantId = $decoded['tenant_id'];