Skip to content

Commit

Permalink
fix(socialavatar): Match base class argument name
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Oct 31, 2023
1 parent 1b161c2 commit b0abe36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/Cron/SocialUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ public function __construct(ITimeFactory $time,
$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)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cron/SocialUpdateRegistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function __construct(
/**
* @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')) {
Expand Down

0 comments on commit b0abe36

Please sign in to comment.