diff --git a/app/Listeners/ProcessUnhealthySpeedtest.php b/app/Listeners/ProcessUnhealthySpeedtest.php index 288f60739..860f7a292 100644 --- a/app/Listeners/ProcessUnhealthySpeedtest.php +++ b/app/Listeners/ProcessUnhealthySpeedtest.php @@ -72,7 +72,7 @@ private function notifyAppriseChannels(Result $result): void 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 e22f4ec28..2515a6ad2 100644 --- a/app/Mail/UnhealthySpeedtestMail.php +++ b/app/Mail/UnhealthySpeedtestMail.php @@ -62,7 +62,7 @@ private function formatBenchmark(string $metric, array $benchmark): array { $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) {