зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #4217 from nextcloud/bugfix/noid/fix-more-background-jobs
Add missing parent::__construct() call to all background jobs
This commit is contained in:
Коммит
7ab4d56d2d
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче