diff --git a/app/Jobs/StatServerJob.php b/app/Jobs/StatServerJob.php index cd7634ed..7a1e234a 100644 --- a/app/Jobs/StatServerJob.php +++ b/app/Jobs/StatServerJob.php @@ -49,7 +49,7 @@ class StatServerJob implements ShouldQueue } $data = StatServer::where('record_at', $recordAt) - ->where('server_id', $this->server->id) + ->where('server_id', $this->server['id']) ->where('server_type', $this->protocol) ->lockForUpdate() ->first(); @@ -64,7 +64,7 @@ class StatServerJob implements ShouldQueue } } else { if (!StatServer::create([ - 'server_id' => $this->server->id, + 'server_id' => $this->server['id'], 'server_type' => $this->protocol, 'u' => $this->u, 'd' => $this->d,