From 9b0b53be60c8a03633bba92af4eda0955148a0b7 Mon Sep 17 00:00:00 2001 From: Sven van Ginkel Date: Tue, 10 Feb 2026 22:51:14 +0100 Subject: [PATCH] bug: fix threshold notification (#2702) --- app/Listeners/ProcessUnhealthySpeedtest.php | 2 +- app/Mail/UnhealthySpeedtestMail.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {