Explorar o código

update: fix stat server

tokumeikoi %!s(int64=2) %!d(string=hai) anos
pai
achega
49d9c453d8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Jobs/StatServerJob.php

+ 2 - 2
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,