Daniel Supernault преди 6 години
родител
ревизия
aaf6477b7e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Console/Commands/UpdateCommand.php

+ 1 - 1
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) {