From 374997083153f9157bf864c086073ea31f0b1b77 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 29 Sep 2023 09:48:20 +0200 Subject: [PATCH] fix: update process if server has been renamed --- app/Actions/Server/UpdateCoolify.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.php index bdf8275c7..3203f9b05 100644 --- a/app/Actions/Server/UpdateCoolify.php +++ b/app/Actions/Server/UpdateCoolify.php @@ -16,8 +16,7 @@ class UpdateCoolify try { $settings = InstanceSettings::get(); ray('Running InstanceAutoUpdateJob'); - $localhost_name = 'localhost'; - $this->server = Server::where('name', $localhost_name)->first(); + $this->server = Server::find(0)->first(); if (!$this->server) { return; }