diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-11-30 17:18:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 17:18:18 +0100 |
commit | 8a6cd9d767311cedf925884ba0f55d648e2b8490 (patch) | |
tree | fc3962256eada31bdbe3d26391c3375586982b1e /lib | |
parent | 580f2fc7ba297fd30b40c173107cfe886d1214fe (diff) | |
parent | b0abe36e461da17a550f119b4a11c18e7a6c290e (diff) |
Merge pull request #3682 from nextcloud/fix/socialavatar/background-job-argument
fix(socialavatar): Match base class argument name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Cron/SocialUpdate.php | 8 | ||||
-rw-r--r-- | lib/Cron/SocialUpdateRegistration.php | 2 |
2 files changed, 5 insertions, 5 deletions
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')) { |