From 0b13ba88d4c107be031c0ed7e1cc410d1f7664e4 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Mon, 14 Oct 2024 08:16:25 +0200 Subject: [PATCH] fix: Properly call parent constructor for remote activity job Signed-off-by: Julius Knorr --- lib/BackgroundJob/RemoteActivity.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/BackgroundJob/RemoteActivity.php b/lib/BackgroundJob/RemoteActivity.php index 03bd57b37..61e896afb 100644 --- a/lib/BackgroundJob/RemoteActivity.php +++ b/lib/BackgroundJob/RemoteActivity.php @@ -8,6 +8,7 @@ use GuzzleHttp\Exception\ClientException; use OCA\Activity\Extension\Files; +use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\QueuedJob; use OCP\Federation\ICloudId; use OCP\Federation\ICloudIdManager; @@ -20,7 +21,8 @@ class RemoteActivity extends QueuedJob { /** @var ICloudIdManager */ protected $cloudIdManager; - public function __construct(IClientService $clientService, ICloudIdManager $cloudIdManager) { + public function __construct(ITimeFactory $timeFactory, IClientService $clientService, ICloudIdManager $cloudIdManager) { + parent::__construct($timeFactory); $this->clientService = $clientService; $this->cloudIdManager = $cloudIdManager; }