diff --git a/lib/BackgroundJob/BackgroundScanner.php b/lib/BackgroundJob/BackgroundScanner.php index 5db3f54d..d60fb98b 100644 --- a/lib/BackgroundJob/BackgroundScanner.php +++ b/lib/BackgroundJob/BackgroundScanner.php @@ -22,6 +22,7 @@ use OCP\Files\IMimeTypeLoader; use OCP\Files\IRootFolder; use OCP\Files\Node; +use OCP\IConfig; use OCP\IDBConnection; use Psr\Log\LoggerInterface; @@ -35,6 +36,7 @@ class BackgroundScanner extends TimedJob { protected ItemFactory $itemFactory; private IUserMountCache $userMountCache; private IEventDispatcher $eventDispatcher; + private IConfig $config; private bool $isCLI; public function __construct( @@ -48,6 +50,7 @@ public function __construct( ItemFactory $itemFactory, IUserMountCache $userMountCache, IEventDispatcher $eventDispatcher, + IConfig $config, bool $isCLI ) { parent::__construct($timeFactory); @@ -60,6 +63,7 @@ public function __construct( $this->itemFactory = $itemFactory; $this->userMountCache = $userMountCache; $this->eventDispatcher = $eventDispatcher; + $this->config = $config; $this->isCLI = $isCLI; // Run once per 15 minutes