fix: execute return int for export command

Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
Max
2023-06-14 11:00:36 +02:00
parent 6fa8480722
commit ff16f95b57

View File

@@ -79,12 +79,12 @@ class UserExport extends Command {
/** /**
* @param InputInterface $input * @param InputInterface $input
* @param OutputInterface $output * @param OutputInterface $output
* @return void * @return int
* @throws DoesNotExistException * @throws DoesNotExistException
* @throws MultipleObjectsReturnedException * @throws MultipleObjectsReturnedException
* @throws \ReflectionException * @throws \ReflectionException
*/ */
protected function execute(InputInterface $input, OutputInterface $output) { protected function execute(InputInterface $input, OutputInterface $output): int {
$userId = $input->getArgument('user-id'); $userId = $input->getArgument('user-id');
$this->boardService->setUserId($userId); $this->boardService->setUserId($userId);
@@ -109,5 +109,6 @@ class UserExport extends Command {
} }
} }
$output->writeln(json_encode($data, JSON_PRETTY_PRINT)); $output->writeln(json_encode($data, JSON_PRETTY_PRINT));
return 0;
} }
} }