fix: execute return int for export command
Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user