diff --git a/app/Jobs/InstanceAutoUpdateJob.php b/app/Jobs/InstanceAutoUpdateJob.php index 572825174..b5021781c 100644 --- a/app/Jobs/InstanceAutoUpdateJob.php +++ b/app/Jobs/InstanceAutoUpdateJob.php @@ -28,7 +28,7 @@ class InstanceAutoUpdateJob implements ShouldQueue } $instance_settings = InstanceSettings::get(); - $this->server = Server::whereFirst('name', $this->server_name); + $this->server = Server::where('name', $this->server_name)->firstOrFail(); if (!$instance_settings->is_auto_update_enabled || !$this->server) { return $this->delete();