aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/BackgroundJob/CleanupDirectEditingTokens.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/BackgroundJob/CleanupDirectEditingTokens.php')
-rw-r--r--apps/files/lib/BackgroundJob/CleanupDirectEditingTokens.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/apps/files/lib/BackgroundJob/CleanupDirectEditingTokens.php b/apps/files/lib/BackgroundJob/CleanupDirectEditingTokens.php
index 376e1049469..a1032b2787d 100644
--- a/apps/files/lib/BackgroundJob/CleanupDirectEditingTokens.php
+++ b/apps/files/lib/BackgroundJob/CleanupDirectEditingTokens.php
@@ -13,15 +13,12 @@ use OCP\BackgroundJob\TimedJob;
use OCP\DirectEditing\IManager;
class CleanupDirectEditingTokens extends TimedJob {
- private const INTERVAL_MINUTES = 15 * 60;
-
- private IManager $manager;
-
- public function __construct(ITimeFactory $time,
- IManager $manager) {
+ public function __construct(
+ ITimeFactory $time,
+ private IManager $manager,
+ ) {
parent::__construct($time);
- $this->interval = self::INTERVAL_MINUTES;
- $this->manager = $manager;
+ $this->setInterval(15 * 60);
}
/**