Update UpdateCommand

This commit is contained in:
Daniel Supernault 2019-03-01 23:28:37 -07:00
parent 894165e6ef
commit aaf6477b7e
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -49,7 +49,7 @@ class UpdateCommand extends Command
$this->info('No updates found.');
return;
}
$bar = $this->output->createProgressBar(\App\StatusHashtag::count());
$bar = $this->output->createProgressBar(\App\StatusHashtag::whereNull('profile_id')->count());
\App\StatusHashtag::whereNull('profile_id')->with('status')->chunk(50, function($sh) use ($bar) {
foreach($sh as $status_hashtag) {
if(!$status_hashtag->status) {