mirror of
https://github.com/nextcloud/server.git
synced 2024-09-08 15:48:04 +02:00
Refactor core/BackgroundJobs
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
This commit is contained in:
parent
b529fa6b6c
commit
47361fdc55
@ -43,7 +43,7 @@ class BackgroundCleanupUpdaterBackupsJob extends QueuedJob {
|
||||
/**
|
||||
* This job cleans up all backups except the latest 3 from the updaters backup directory
|
||||
*/
|
||||
public function run($arguments) {
|
||||
public function run($arguments): void {
|
||||
$updateDir = $this->config->getSystemValue('updatedirectory', null) ?? $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data');
|
||||
$instanceId = $this->config->getSystemValue('instanceid', null);
|
||||
|
||||
|
@ -40,7 +40,7 @@ class LookupServerSendCheckBackgroundJob extends QueuedJob {
|
||||
parent::__construct($time);
|
||||
}
|
||||
|
||||
public function run($arguments) {
|
||||
public function run($arguments): void {
|
||||
$this->userManager->callForSeenUsers(function (IUser $user) {
|
||||
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user