[Bug] Fixed result reference in speedtest completed mail (#1492)

This commit is contained in:
Alex Justesen
2024-06-08 07:56:00 -04:00
committed by GitHub
parent 11d000e5e8
commit ac0556fd10
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class SpeedtestCompletedMail extends Mailable implements ShouldQueue
'ping' => round($this->result->ping, 2).' ms',
'download' => Number::toBitRate(bits: $this->result->download_bits, precision: 2),
'upload' => Number::toBitRate(bits: $this->result->upload_bits, precision: 2),
'packetLoss' => $event->result->packet_loss,
'packetLoss' => is_numeric($this->result->packet_loss) ? $this->result->packet_loss : 'n/a',
'url' => url('/admin/results'),
],
);
@@ -11,7 +11,7 @@ A new speedtest was completed using **{{ $service }}**.
| Ping | {{ $ping }} |
| Download | {{ $download }} |
| Upload | {{ $upload }} |
| Packet Loss | {{ $packetLoss }} **%** |
| Packet Loss | {{ $packetLoss }}**%** |
</x-mail::table>