diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-23 17:41:01 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-24 11:02:23 +0300 |
commit | 42f4699e0d4f420a23d7e77fba75a4e1e2052fe8 (patch) | |
tree | 4834f890c5958f28f09f744ce37d2d1a74fd9e87 /lib/BackgroundJob | |
parent | 9a7ff2471c07343456e436f2032c51721a240735 (diff) |
Add missing parent::__construct() call to all background jobs
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/BackgroundJob')
-rw-r--r-- | lib/BackgroundJob/ExpireSignalingMessage.php | 6 | ||||
-rw-r--r-- | lib/BackgroundJob/RemoveEmptyRooms.php | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/BackgroundJob/ExpireSignalingMessage.php b/lib/BackgroundJob/ExpireSignalingMessage.php index 19bc00059..24cb99c2d 100644 --- a/lib/BackgroundJob/ExpireSignalingMessage.php +++ b/lib/BackgroundJob/ExpireSignalingMessage.php @@ -23,6 +23,7 @@ declare(strict_types=1); namespace OCA\Talk\BackgroundJob; +use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\TimedJob; use OCA\Talk\Signaling\Messages; @@ -36,7 +37,10 @@ class ExpireSignalingMessage extends TimedJob { /** @var Messages */ protected $messages; - public function __construct(Messages $messages) { + public function __construct(ITimeFactory $timeFactory, + Messages $messages) { + parent::__construct($timeFactory); + // Every 5 minutes $this->setInterval(60 * 5); diff --git a/lib/BackgroundJob/RemoveEmptyRooms.php b/lib/BackgroundJob/RemoveEmptyRooms.php index 211773797..6446b1aef 100644 --- a/lib/BackgroundJob/RemoveEmptyRooms.php +++ b/lib/BackgroundJob/RemoveEmptyRooms.php @@ -23,6 +23,7 @@ declare(strict_types=1); namespace OCA\Talk\BackgroundJob; +use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\TimedJob; use OCA\Talk\Manager; use OCA\Talk\Room; @@ -43,8 +44,11 @@ class RemoveEmptyRooms extends TimedJob { protected $numDeletedRooms = 0; - public function __construct(Manager $manager, + public function __construct(ITimeFactory $timeFactory, + Manager $manager, LoggerInterface $logger) { + parent::__construct($timeFactory); + // Every 5 minutes $this->setInterval(60 * 5); |