From b0abe36e461da17a550f119b4a11c18e7a6c290e Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 31 Oct 2023 14:27:32 +0100 Subject: fix(socialavatar): Match base class argument name Signed-off-by: Christoph Wurst --- lib/Cron/SocialUpdate.php | 8 ++++---- lib/Cron/SocialUpdateRegistration.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/Cron/SocialUpdate.php b/lib/Cron/SocialUpdate.php index dfd2989e..4c0bd8e6 100644 --- a/lib/Cron/SocialUpdate.php +++ b/lib/Cron/SocialUpdate.php @@ -52,10 +52,10 @@ class SocialUpdate extends QueuedJob { $this->userManager = $userManager; } - protected function run($arguments) { - $userId = $arguments['userId']; - $offsetBook = $arguments['offsetBook'] ?? null; - $offsetContact = $arguments['offsetContact'] ?? null; + protected function run($argument) { + $userId = $argument['userId']; + $offsetBook = $argument['offsetBook'] ?? null; + $offsetContact = $argument['offsetContact'] ?? null; // No need to do anything if the user is gone anyway if (!$this->userManager->userExists($userId)) { diff --git a/lib/Cron/SocialUpdateRegistration.php b/lib/Cron/SocialUpdateRegistration.php index 664b921e..72e4c887 100644 --- a/lib/Cron/SocialUpdateRegistration.php +++ b/lib/Cron/SocialUpdateRegistration.php @@ -82,7 +82,7 @@ class SocialUpdateRegistration extends TimedJob { /** * @inheritDoc */ - protected function run($arguments) { + protected function run($argument) { // check if admin allows for social updates: $syncAllowedByAdmin = $this->config->getAppValue($this->appName, 'allowSocialSync', 'yes'); if (!($syncAllowedByAdmin === 'yes')) { -- cgit v1.2.3