mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #39182 from shdehnavi/refactor_core_backgroundjobs
This commit is contained in:
commit
832e435d69
2 changed files with 7 additions and 2 deletions
|
|
@ -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) {
|
||||
public function run($argument): void {
|
||||
$updateDir = $this->config->getSystemValue('updatedirectory', null) ?? $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data');
|
||||
$instanceId = $this->config->getSystemValue('instanceid', null);
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,10 @@ class LookupServerSendCheckBackgroundJob extends QueuedJob {
|
|||
parent::__construct($time);
|
||||
}
|
||||
|
||||
public function run($arguments) {
|
||||
/**
|
||||
* @param array $argument
|
||||
*/
|
||||
public function run($argument): void {
|
||||
$this->userManager->callForSeenUsers(function (IUser $user) {
|
||||
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue