Procházet zdrojové kódy

Update SendUpdateActor command

Daniel Supernault před 2 roky
rodič
revize
5ce158a272
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      app/Console/Commands/SendUpdateActor.php

+ 2 - 1
app/Console/Commands/SendUpdateActor.php

@@ -80,7 +80,8 @@ class SendUpdateActor extends Command
             $bar->start();
 
             $startCache = $this->getStorageCache($domain);
-            User::whereNull('status')->when($startCache, function($query, $startCache) {
+            User::whereNull('status')->when($startCache, function($query, $startCache) use($bar) {
+                $bar->advance($startCache);
                 return $query->where('id', '>', $startCache);
             })->chunk(50, function($users) use($bar, $url, $domain) {
                 foreach($users as $user) {