fix
This commit is contained in:
parent
353465cba7
commit
4044f28167
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ public function __construct(private bool $force = false)
|
|||
}
|
||||
|
||||
$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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue