Explorar o código

update: stat server job

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

+ 1 - 0
app/Jobs/StatServerJob.php

@@ -50,6 +50,7 @@ class StatServerJob implements ShouldQueue
 
         $data = StatServer::where('record_at', $recordAt)
             ->where('server_id', $this->server->id)
+            ->lockForUpdate()
             ->first();
         if ($data) {
             try {