summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Cron/SocialUpdate.php8
-rw-r--r--lib/Cron/SocialUpdateRegistration.php2
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')) {