summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php')
-rw-r--r--apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php b/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php
index d35f35d20f2..687dcd25f8b 100644
--- a/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php
+++ b/apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php
@@ -26,7 +26,8 @@ declare(strict_types=1);
*/
namespace OCA\Files_Sharing\BackgroundJob;
-use OC\BackgroundJob\TimedJob;
+use OCP\AppFramework\Utility\ITimeFactory;
+use OCP\BackgroundJob\TimedJob;
use OCP\IDBConnection;
use OCP\OCS\IDiscoveryService;
@@ -36,8 +37,10 @@ class FederatedSharesDiscoverJob extends TimedJob {
/** @var IDiscoveryService */
private $discoveryService;
- public function __construct(IDBConnection $connection,
+ public function __construct(ITimeFactory $time,
+ IDBConnection $connection,
IDiscoveryService $discoveryService) {
+ parent::__construct($time);
$this->connection = $connection;
$this->discoveryService = $discoveryService;