Skip to content

Commit 5c857ee

Browse files
authored
[Feature] Write the server id to the result on failed tests (alexjustesen#1533)
1 parent 3713dae commit 5c857ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Jobs/Speedtests/ExecuteOoklaSpeedtest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function handle(): void
6464
$message = collect(array_filter($messages, 'json_validate'))->last();
6565

6666
$this->result->update([
67+
'server_id' => $this->serverId,
6768
'data' => json_decode($message, true),
6869
'status' => ResultStatus::Failed,
6970
]);
@@ -100,6 +101,7 @@ protected function checkForInternetConnection(): bool
100101

101102
if ($ping->ping() === false) {
102103
$this->result->update([
104+
'server_id' => $this->serverId,
103105
'data' => [
104106
'type' => 'log',
105107
'level' => 'error',

0 commit comments

Comments
 (0)