summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-05-08 14:47:50 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-05-14 13:25:55 +0200
commit253f962241ba7c96610f22e6940c31184650041d (patch)
tree4142059ceba15c6bf5748b8260285c9a11940f3e /lib/private/Setup.php
parent3bfa031f38ded2da90ce6051187fcbcb53f67cc2 (diff)
downloadnextcloud-server-253f962241ba7c96610f22e6940c31184650041d.tar.gz
nextcloud-server-253f962241ba7c96610f22e6940c31184650041d.zip
Add the job
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r--lib/private/Setup.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 5564bb5b072..25e0b4d8817 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -47,6 +47,7 @@ use OC\App\AppStore\Bundles\BundleFetcher;
use OC\Authentication\Token\DefaultTokenCleanupJob;
use OC\Authentication\Token\DefaultTokenProvider;
use OC\Log\Rotate;
+use OC\Preview\BackgroundCleanupJob;
use OCP\Defaults;
use OCP\IL10N;
use OCP\ILogger;
@@ -419,6 +420,7 @@ class Setup {
$jobList = \OC::$server->getJobList();
$jobList->add(DefaultTokenCleanupJob::class);
$jobList->add(Rotate::class);
+ $jobList->add(BackgroundCleanupJob::class);
}
/**