From a0f6a6545b59b1061e96e7d17d8ec6d6f32e615e Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 5 Dec 2022 10:13:34 +0100 Subject: Use TimedJob from OCP instead of OC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/workflowengine/lib/BackgroundJobs/Rotate.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/workflowengine/lib') diff --git a/apps/workflowengine/lib/BackgroundJobs/Rotate.php b/apps/workflowengine/lib/BackgroundJobs/Rotate.php index e96af4fd9e1..ee83f4821f1 100644 --- a/apps/workflowengine/lib/BackgroundJobs/Rotate.php +++ b/apps/workflowengine/lib/BackgroundJobs/Rotate.php @@ -23,14 +23,16 @@ */ namespace OCA\WorkflowEngine\BackgroundJobs; -use OC\BackgroundJob\TimedJob; +use OCP\AppFramework\Utility\ITimeFactory; +use OCP\BackgroundJob\TimedJob; use OCA\WorkflowEngine\AppInfo\Application; use OCP\Log\RotationTrait; class Rotate extends TimedJob { use RotationTrait; - public function __construct() { + public function __construct(ITimeFactory $time) { + parent::__construct($time); $this->setInterval(60 * 60 * 3); } -- cgit v1.2.3