fix: update process if server has been renamed

This commit is contained in:
Andras Bacsai 2023-09-29 09:48:20 +02:00
parent 7d45bb1335
commit 3749970831

View File

@ -16,8 +16,7 @@ public function __invoke(bool $force)
try { try {
$settings = InstanceSettings::get(); $settings = InstanceSettings::get();
ray('Running InstanceAutoUpdateJob'); ray('Running InstanceAutoUpdateJob');
$localhost_name = 'localhost'; $this->server = Server::find(0)->first();
$this->server = Server::where('name', $localhost_name)->first();
if (!$this->server) { if (!$this->server) {
return; return;
} }