Ver Fonte

Update SendUpdateActor command

Daniel Supernault há 2 anos atrás
pai
commit
5ce158a272
1 ficheiros alterados com 2 adições e 1 exclusões
  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) {