update: fix stat server

This commit is contained in:
tokumeikoi 2022-07-17 01:50:57 +08:00
parent 8702a3489b
commit 49d9c453d8

View File

@ -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,