mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
[L6] Update cursor() calls to work with new lazy collections
This commit is contained in:
@@ -98,7 +98,7 @@ class BulkPowerActionCommand extends Command
|
||||
$bar = $this->output->createProgressBar($count);
|
||||
$servers = $this->repository->getServersForPowerAction($servers, $nodes);
|
||||
|
||||
foreach ($servers as $server) {
|
||||
$servers->each(function ($server) use ($action, &$bar) {
|
||||
$bar->clear();
|
||||
|
||||
try {
|
||||
@@ -117,7 +117,7 @@ class BulkPowerActionCommand extends Command
|
||||
|
||||
$bar->advance();
|
||||
$bar->display();
|
||||
}
|
||||
});
|
||||
|
||||
$this->line('');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user