Browse Source
fix(files_external): wrong type for external mount id
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
pull/49843/head
Benjamin Gaussorgues
11 months ago
No known key found for this signature in database
GPG Key ID: 5DAC1CAFAA6DB883
1 changed files with
1 additions and
1 deletions
-
apps/files_external/lib/Command/StorageAuthBase.php
|
|
|
@ -52,7 +52,7 @@ abstract class StorageAuthBase extends Base { |
|
|
|
protected function createStorage(InputInterface $input, OutputInterface $output): array { |
|
|
|
try { |
|
|
|
/** @var StorageConfig|null $mount */ |
|
|
|
$mount = $this->globalService->getStorage($input->getArgument('mount_id')); |
|
|
|
$mount = $this->globalService->getStorage((int)$input->getArgument('mount_id')); |
|
|
|
} catch (NotFoundException $e) { |
|
|
|
$output->writeln('<error>Mount not found</error>'); |
|
|
|
return [null, null]; |
|
|
|
|