Refactor code and update destination component

This commit is contained in:
Andras Bacsai
2023-11-21 15:31:46 +01:00
parent f58e6766e1
commit ef7fc1b260
12 changed files with 162 additions and 53 deletions

View File

@@ -332,7 +332,6 @@ class Server extends BaseModel
}
$uptime = instant_remote_process(['uptime'], $this, false);
ray($uptime);
if (!$uptime) {
$this->settings()->update([
'is_reachable' => false,
@@ -345,7 +344,6 @@ class Server extends BaseModel
$this->update([
'unreachable_count' => 0,
]);
ray($this);
}
if (data_get($this, 'unreachable_notification_sent') === true) {