mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Use OCP version of TimedJob instead of OC for ResetTokenBackgroundJob
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
47ea43ea49
commit
56727ba58b
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue