From 56727ba58b776732524a47ee42063653211fcd41 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 25 May 2022 08:52:39 +0200 Subject: [PATCH] Use OCP version of TimedJob instead of OC for ResetTokenBackgroundJob Signed-off-by: Thomas Citharel --- apps/updatenotification/lib/ResetTokenBackgroundJob.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/updatenotification/lib/ResetTokenBackgroundJob.php b/apps/updatenotification/lib/ResetTokenBackgroundJob.php index 0d07c7301d94c..6e80f0fc0bf76 100644 --- a/apps/updatenotification/lib/ResetTokenBackgroundJob.php +++ b/apps/updatenotification/lib/ResetTokenBackgroundJob.php @@ -26,7 +26,7 @@ */ namespace OCA\UpdateNotification; -use OC\BackgroundJob\TimedJob; +use OCP\BackgroundJob\TimedJob; use OCP\AppFramework\Utility\ITimeFactory; use OCP\IConfig; @@ -48,8 +48,9 @@ class ResetTokenBackgroundJob extends TimedJob { */ public function __construct(IConfig $config, ITimeFactory $timeFactory) { + parent::__construct($timeFactory); // Run all 10 minutes - $this->setInterval(60 * 10); + parent::setInterval(60 * 10); $this->config = $config; $this->timeFactory = $timeFactory; }