Removed health status from Speed & RPM

This commit is contained in:
2025-06-12 13:37:48 +05:30
parent 37e7eb7dc6
commit 8ac1220797

View File

@@ -230,7 +230,9 @@ class TelemetryService
$transformedTelemetry[] = [
'display_name' => $displayNameMap[$key] ?? $key,
'value' => $this->getTypeWiseValue($key, $value),
'health_status' => !$isActive ? 'Offline' : $status,
'health_status' => !$isActive
? 'Offline'
: (in_array($displayNameMap[$key], ['Speed', 'RPM']) ? 'Offline' : $status),
'status_color' => !$isActive ? 'gray' : $statusColor,
'thresholds' => $thresholds,
'limit' => $thresholdLimits