Skip to content
Snippets Groups Projects
Unverified Commit cc1d948c authored by Thomas Müller's avatar Thomas Müller
Browse files

Add background job declaration of dav app to info.xml

parent 71fa0a75
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
......@@ -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>
......@@ -22,5 +22,4 @@
use OCA\Dav\AppInfo\Application;
$app = new Application();
$app->setupCron();
$app->generateBirthdays();
......@@ -22,5 +22,4 @@
use OCA\Dav\AppInfo\Application;
$app = new Application();
$app->setupCron();
$app->generateBirthdays();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment