mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 07:40:08 +00:00
[Bug] Fixed result reference in speedtest completed mail (#1492)
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user