Skip to content

Commit

Permalink
Update Twitter_CheckUnfollows.php
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrisKrisu committed Nov 7, 2020
1 parent c11a1f3 commit a8e7d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/Twitter_CheckUnfollows.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Twitter_CheckUnfollows extends Command
*
* @var string
*/
protected $signature = 'twitter:check_unfollows';
protected $signature = 'twitter:check_unfollows {limit=50}';

/**
* The console command description.
Expand Down Expand Up @@ -50,7 +50,7 @@ public function handle()
return;
}

$toCheck = TwitterFollower::orderBy('updated_at', 'asc')->limit(50)->get();
$toCheck = TwitterFollower::orderBy('updated_at', 'asc')->limit($this->argument('limit'))->get();
foreach ($toCheck as $relationship) {
try {
$sl_profile = SocialLoginProfile::where('twitter_id', $relationship->followed_id)->where('twitter_token', '<>', NULL)->first();
Expand Down

0 comments on commit a8e7d29

Please sign in to comment.