aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/appinfo/install.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-01-28 15:49:33 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-29 11:51:47 +0100
commitf0caf4123220737aba2a5873f5bace84851a9f8a (patch)
treecd17f3bc4d001d7a0c8bfc71b6f3bb939452631d /apps/files/appinfo/install.php
parent1765e11f7573e61ae4506111ca60a51818a3788a (diff)
downloadnextcloud-server-f0caf4123220737aba2a5873f5bace84851a9f8a.tar.gz
nextcloud-server-f0caf4123220737aba2a5873f5bace84851a9f8a.zip
Cleanup job for system and user tag orphaned when file was deleted
Whenever a file was deleted (also from trash), the tag mapping is pointing at a fileid that doesn't exist any more. This cleanup job will delete such orphaned mapping entries.
Diffstat (limited to 'apps/files/appinfo/install.php')
-rw-r--r--apps/files/appinfo/install.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files/appinfo/install.php b/apps/files/appinfo/install.php
index 485a5f2976d..b9a893d1ee8 100644
--- a/apps/files/appinfo/install.php
+++ b/apps/files/appinfo/install.php
@@ -20,7 +20,5 @@
*/
// Cron job for scanning user storages
-$jobList = \OC::$server->getJobList();
-$job = 'OCA\Files\BackgroundJob\ScanFiles';
-\OC::$server->getJobList()->add($job);
-
+\OC::$server->getJobList()->add('OCA\Files\BackgroundJob\ScanFiles');
+\OC::$server->getJobList()->add('OCA\Files\BackgroundJob\DeleteOrphanedTagsJob');