浏览代码

Update UpdateCommand

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.');
             $this->info('No updates found.');
             return;
             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) {
         \App\StatusHashtag::whereNull('profile_id')->with('status')->chunk(50, function($sh) use ($bar) {
             foreach($sh as $status_hashtag) {
             foreach($sh as $status_hashtag) {
                 if(!$status_hashtag->status) {
                 if(!$status_hashtag->status) {