mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update SendUpdateActor command
This commit is contained in:
parent
04a498af9c
commit
5ce158a272
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ class SendUpdateActor extends Command
|
|||
$bar->start();
|
||||
|
||||
$startCache = $this->getStorageCache($domain);
|
||||
User::whereNull('status')->when($startCache, function($query, $startCache) {
|
||||
User::whereNull('status')->when($startCache, function($query, $startCache) use($bar) {
|
||||
$bar->advance($startCache);
|
||||
return $query->where('id', '>', $startCache);
|
||||
})->chunk(50, function($users) use($bar, $url, $domain) {
|
||||
foreach($users as $user) {
|
||||
|
|
Loading…
Reference in a new issue