summaryrefslogtreecommitdiffstats
path: root/apps/files/command
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/command')
-rw-r--r--apps/files/command/scan.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/command/scan.php b/apps/files/command/scan.php
index 3412cf80dea..e4d719a8b4b 100644
--- a/apps/files/command/scan.php
+++ b/apps/files/command/scan.php
@@ -46,7 +46,7 @@ class Scan extends Command {
}
protected function scanFiles($user, OutputInterface $output) {
- $scanner = new \OC\Files\Utils\Scanner($user);
+ $scanner = new \OC\Files\Utils\Scanner($user, \OC::$server->getDatabaseConnection());
$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function ($path) use ($output) {
$output->writeln("Scanning <info>$path</info>");
});