summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-10-31 14:27:32 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-10-31 14:27:32 +0100
commitb0abe36e461da17a550f119b4a11c18e7a6c290e (patch)
tree7d17909848122af3897f25162404295d5f134e59 /lib
parent1b161c28496cbe05bc2ebb65d5c898c431d131c5 (diff)
fix(socialavatar): Match base class argument name
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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')) {