]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use OCP version of TimedJob instead of OC for ResetTokenBackgroundJob
authorThomas Citharel <tcit@tcit.fr>
Wed, 25 May 2022 06:52:39 +0000 (08:52 +0200)
committerThomas Citharel <tcit@tcit.fr>
Wed, 15 Jun 2022 08:29:16 +0000 (10:29 +0200)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
apps/updatenotification/lib/ResetTokenBackgroundJob.php

index 0d07c7301d94c757381c012b94e04b8145d08e41..6e80f0fc0bf76e51f21f6e99f2684d27635b43ac 100644 (file)
@@ -26,7 +26,7 @@ declare(strict_types=1);
  */
 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;
        }