Refactor CleanupUnreachableServers command to update server IP address
This commit is contained in:
parent
6555f0b50c
commit
e8b539c3bd
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ public function handle()
|
|||
$servers = Server::where('unreachable_count', 3)->where('unreachable_notification_sent', true)->where('updated_at', '<', now()->subDays(3))->get();
|
||||
if ($servers->count() > 0) {
|
||||
foreach ($servers as $server) {
|
||||
ray("Cleanup unreachable server ($server->id) with name $server->name");
|
||||
echo "Cleanup unreachable server ($server->id) with name $server->name";
|
||||
$server->update([
|
||||
'ip' => '1.2.3.4'
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue