diff --git a/apps/dav/lib/Command/FixCalendarSyncCommand.php b/apps/dav/lib/Command/FixCalendarSyncCommand.php index bb269c92e1526..cb31355c10da1 100644 --- a/apps/dav/lib/Command/FixCalendarSyncCommand.php +++ b/apps/dav/lib/Command/FixCalendarSyncCommand.php @@ -43,7 +43,7 @@ public function execute(InputInterface $input, OutputInterface $output): int { $user = $this->userManager->get($userArg); if ($user === null) { $output->writeln("User $userArg does not exist"); - return 1; + return self::FAILURE; } $this->fixUserCalendars($user); @@ -54,7 +54,8 @@ public function execute(InputInterface $input, OutputInterface $output): int { }); $progress->finish(); } - return 0; + $output->writeln(''); + return self::SUCCESS; } private function fixUserCalendars(IUser $user, ?ProgressBar $progress = null): void {