mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02: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();
|
$bar->start();
|
||||||
|
|
||||||
$startCache = $this->getStorageCache($domain);
|
$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);
|
return $query->where('id', '>', $startCache);
|
||||||
})->chunk(50, function($users) use($bar, $url, $domain) {
|
})->chunk(50, function($users) use($bar, $url, $domain) {
|
||||||
foreach($users as $user) {
|
foreach($users as $user) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue