From aaf6477b7e4c8a7a3aa28b91a97f721330c9ee57 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 1 Mar 2019 23:28:37 -0700 Subject: [PATCH] Update UpdateCommand --- app/Console/Commands/UpdateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/UpdateCommand.php b/app/Console/Commands/UpdateCommand.php index 03a89098..af4634d6 100644 --- a/app/Console/Commands/UpdateCommand.php +++ b/app/Console/Commands/UpdateCommand.php @@ -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) {