diff --git a/app/Console/Commands/SendUpdateActor.php b/app/Console/Commands/SendUpdateActor.php index a874ee7c8..369d582a4 100644 --- a/app/Console/Commands/SendUpdateActor.php +++ b/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) {