diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-05 10:13:34 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-05 10:13:34 +0100 |
commit | a0f6a6545b59b1061e96e7d17d8ec6d6f32e615e (patch) | |
tree | b98e1679b900f1518acdcea69884c25f1cd0f962 /apps/updatenotification | |
parent | 944be7950a0199dbc48b99dac936987b13dd0383 (diff) | |
download | nextcloud-server-a0f6a6545b59b1061e96e7d17d8ec6d6f32e615e.tar.gz nextcloud-server-a0f6a6545b59b1061e96e7d17d8ec6d6f32e615e.zip |
Use TimedJob from OCP instead of OC
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/updatenotification')
-rw-r--r-- | apps/updatenotification/lib/Notification/BackgroundJob.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/updatenotification/lib/Notification/BackgroundJob.php b/apps/updatenotification/lib/Notification/BackgroundJob.php index e7dc193df6c..c1b3cddf945 100644 --- a/apps/updatenotification/lib/Notification/BackgroundJob.php +++ b/apps/updatenotification/lib/Notification/BackgroundJob.php @@ -26,10 +26,11 @@ declare(strict_types=1); */ namespace OCA\UpdateNotification\Notification; -use OC\BackgroundJob\TimedJob; use OC\Installer; use OC\Updater\VersionCheck; use OCP\App\IAppManager; +use OCP\AppFramework\Utility\ITimeFactory; +use OCP\BackgroundJob\TimedJob; use OCP\Http\Client\IClientService; use OCP\IConfig; use OCP\IGroup; @@ -60,12 +61,14 @@ class BackgroundJob extends TimedJob { /** @var string[] */ protected $users; - public function __construct(IConfig $config, + public function __construct(ITimeFactory $timeFactory, + IConfig $config, IManager $notificationManager, IGroupManager $groupManager, IAppManager $appManager, IClientService $client, Installer $installer) { + parent::__construct($timeFactory); // Run once a day $this->setInterval(60 * 60 * 24); |