aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>2024-12-13 10:27:50 +0100
committerBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>2024-12-13 10:27:50 +0100
commit12452f7f22554b823cb0d200bbe1f7a453f117f5 (patch)
treef52425ee0db53db20a3a579b834f94543d02f93e
parentfef721e6419df12ccd8606270a6b6eb26e5b01f4 (diff)
downloadnextcloud-server-12452f7f22554b823cb0d200bbe1f7a453f117f5.tar.gz
nextcloud-server-12452f7f22554b823cb0d200bbe1f7a453f117f5.zip
fix(files_external): wrong type for external mount idfix/files_external_scan
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
-rw-r--r--apps/files_external/lib/Command/StorageAuthBase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Command/StorageAuthBase.php b/apps/files_external/lib/Command/StorageAuthBase.php
index 141a96d43bd..6f830a08a60 100644
--- a/apps/files_external/lib/Command/StorageAuthBase.php
+++ b/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];