diff --git a/lib/BackgroundJobs/UpdateLookupServer.php b/lib/BackgroundJobs/UpdateLookupServer.php index e629d3b..5dec946 100644 --- a/lib/BackgroundJobs/UpdateLookupServer.php +++ b/lib/BackgroundJobs/UpdateLookupServer.php @@ -29,18 +29,20 @@ use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\IJob; use OCP\BackgroundJob\TimedJob; +use OCP\IConfig; class UpdateLookupServer extends TimedJob { public function __construct( ITimeFactory $time, + IConfig $config, private GlobalSiteSelector $globalSiteSelector, private Slave $slave ) { parent::__construct($time); - $this->setInterval(86400); + $this->setInterval($config->getSystemValueInt('gss.updatels.interval', 86400)); $this->setTimeSensitivity(IJob::TIME_SENSITIVE); }