diff --git a/app/Listeners/ProcessUnhealthySpeedtest.php b/app/Listeners/ProcessUnhealthySpeedtest.php index 288f6073..860f7a29 100644 --- a/app/Listeners/ProcessUnhealthySpeedtest.php +++ b/app/Listeners/ProcessUnhealthySpeedtest.php @@ -72,7 +72,7 @@ class ProcessUnhealthySpeedtest if ($benchmark['passed'] === false) { $failed[] = [ 'name' => ucfirst($metric), - 'threshold' => $benchmark['value'].' '.$benchmark['unit'], + 'threshold' => $benchmark['benchmark_value'].' '.$benchmark['unit'], 'value' => $this->formatMetricValue($metric, $result), ]; } diff --git a/app/Mail/UnhealthySpeedtestMail.php b/app/Mail/UnhealthySpeedtestMail.php index e22f4ec2..2515a6ad 100644 --- a/app/Mail/UnhealthySpeedtestMail.php +++ b/app/Mail/UnhealthySpeedtestMail.php @@ -62,7 +62,7 @@ class UnhealthySpeedtestMail extends Mailable implements ShouldQueue { $metricName = str($metric)->title(); $type = str($benchmark['type'])->title(); - $thresholdValue = $benchmark['value'].' '.str($benchmark['unit'])->title(); + $thresholdValue = $benchmark['benchmark_value'].' '.str($benchmark['unit'])->title(); // Get the actual result value $resultValue = match ($metric) {