Make adjustments based on the review

Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
This commit is contained in:
Hamid Dehnavi 2023-07-06 12:39:41 +03:30 committed by Côme Chilliet
parent 47361fdc55
commit 246218d07a
2 changed files with 7 additions and 2 deletions

View File

@ -42,8 +42,10 @@ class BackgroundCleanupUpdaterBackupsJob extends QueuedJob {
/**
* 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);

View File

@ -40,7 +40,10 @@ class LookupServerSendCheckBackgroundJob extends QueuedJob {
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');
});