diff --git a/apps/dav/appinfo/application.php b/apps/dav/appinfo/application.php index c3811a40845d602804b86a7e4e967991d1d4918b..328f86c877f57907abdfe0e3ea1bd19b2338f2d6 100644 --- a/apps/dav/appinfo/application.php +++ b/apps/dav/appinfo/application.php @@ -153,11 +153,6 @@ class Application extends App { return $this->getContainer()->query('SyncService'); } - public function setupCron() { - $jl = $this->getContainer()->getServer()->getJobList(); - $jl->add(new SyncJob()); - } - public function generateBirthdays() { try { /** @var BirthdayService $migration */ diff --git a/apps/dav/appinfo/info.xml b/apps/dav/appinfo/info.xml index bb447c9a426b81fbb6d60aa0df1dfeceb92079cb..e2688e2f923442093284976b29aa46bfec5e5256 100644 --- a/apps/dav/appinfo/info.xml +++ b/apps/dav/appinfo/info.xml @@ -16,4 +16,7 @@ <dependencies> <owncloud min-version="9.1" max-version="9.1" /> </dependencies> + <background-jobs> + <job>OCA\DAV\CardDAV\Sync\SyncJob</job> + </background-jobs> </info> diff --git a/apps/dav/appinfo/install.php b/apps/dav/appinfo/install.php index fbd41d25f49cf6e833d3ae53c225e710cff24ca3..dbb23022b38c1e50c2bf69b173dea3b3b79e738f 100644 --- a/apps/dav/appinfo/install.php +++ b/apps/dav/appinfo/install.php @@ -22,5 +22,4 @@ use OCA\Dav\AppInfo\Application; $app = new Application(); -$app->setupCron(); $app->generateBirthdays(); diff --git a/apps/dav/appinfo/update.php b/apps/dav/appinfo/update.php index fbd41d25f49cf6e833d3ae53c225e710cff24ca3..dbb23022b38c1e50c2bf69b173dea3b3b79e738f 100644 --- a/apps/dav/appinfo/update.php +++ b/apps/dav/appinfo/update.php @@ -22,5 +22,4 @@ use OCA\Dav\AppInfo\Application; $app = new Application(); -$app->setupCron(); $app->generateBirthdays();