Skip to content

Commit

Permalink
Make adjustments based on the review
Browse files Browse the repository at this point in the history
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
  • Loading branch information
shdehnavi authored and come-nc committed Feb 26, 2024
1 parent 47361fd commit 246218d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ public function __construct(

/**
* This job cleans up all backups except the latest 3 from the updaters backup directory
*
* @param array $argument
*/
public function run($arguments): void {
public function run($argument): void {
$updateDir = $this->config->getSystemValue('updatedirectory', null) ?? $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data');
$instanceId = $this->config->getSystemValue('instanceid', null);

Expand Down
5 changes: 4 additions & 1 deletion core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ public function __construct(
parent::__construct($time);
}

public function run($arguments): void {
/**
* @param array $argument
*/
public function run($argument): void {
$this->userManager->callForSeenUsers(function (IUser $user) {
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
});
Expand Down

0 comments on commit 246218d

Please sign in to comment.