summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-08-25 16:26:31 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-08-25 16:26:31 +0200
commit9a2902553495baa6fb1515176a8bbaab5633fb58 (patch)
treef795d5a7053ee1ed69c989946cc9136cd5917550 /core/Command
parent652ab6da3f5309b0ea6e1e19ce4d915ecb6cc9b1 (diff)
downloadnextcloud-server-9a2902553495baa6fb1515176a8bbaab5633fb58.tar.gz
nextcloud-server-9a2902553495baa6fb1515176a8bbaab5633fb58.zip
Parameter of RepairAdvanceEvent is actually an increment, not a step id
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Maintenance/Repair.php2
-rw-r--r--core/Command/Upgrade.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/Maintenance/Repair.php b/core/Command/Maintenance/Repair.php
index 7f8d98d758d..e1d1862f3f4 100644
--- a/core/Command/Maintenance/Repair.php
+++ b/core/Command/Maintenance/Repair.php
@@ -127,7 +127,7 @@ class Repair extends Command {
if ($event instanceof RepairStartEvent) {
$this->progress->start($event->getMaxStep());
} elseif ($event instanceof RepairAdvanceEvent) {
- $this->progress->advance($event->getCurrentStep());
+ $this->progress->advance($event->getIncrement());
} elseif ($event instanceof RepairFinishEvent) {
$this->progress->finish();
$this->output->writeln('');
diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php
index 05f0615d33b..d476b91d6bf 100644
--- a/core/Command/Upgrade.php
+++ b/core/Command/Upgrade.php
@@ -137,7 +137,7 @@ class Upgrade extends Command {
if (!empty($desc)) {
$progress->setMessage($desc);
}
- $progress->advance($event->getCurrentStep());
+ $progress->advance($event->getIncrement());
} elseif ($event instanceof RepairFinishEvent) {
$progress->setMessage('Done');
$progress->finish();