Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-05-25 09:52:39 +0300
committerThomas Citharel <tcit@tcit.fr>2022-06-15 11:29:16 +0300
commit56727ba58b776732524a47ee42063653211fcd41 (patch)
tree5829ceb21aa2a122ff36a1ecdd7c8252309dad3d /apps/updatenotification
parent47ea43ea49e63129c0a731d8ac29e38920eda6ac (diff)
Use OCP version of TimedJob instead of OC for ResetTokenBackgroundJob
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/updatenotification')
-rw-r--r--apps/updatenotification/lib/ResetTokenBackgroundJob.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/updatenotification/lib/ResetTokenBackgroundJob.php b/apps/updatenotification/lib/ResetTokenBackgroundJob.php
index 0d07c7301d9..6e80f0fc0bf 100644
--- a/apps/updatenotification/lib/ResetTokenBackgroundJob.php
+++ b/apps/updatenotification/lib/ResetTokenBackgroundJob.php
@@ -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;
}