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
parent
commit
12452f7f22
No known key found for this signature in database GPG Key ID: 5DAC1CAFAA6DB883
  1. 2
      apps/files_external/lib/Command/StorageAuthBase.php

2
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];

Loading…
Cancel
Save