diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-09 11:14:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-09 11:14:16 +0100 |
commit | 2f9d59535ddad309863c5202b2c7dccf3cc8bd53 (patch) | |
tree | 7818015f62a7b4392d18b7759e807266389c931d /apps/dav | |
parent | bbaa765d512108ecfff0b75895c9b26fd7040dc5 (diff) | |
parent | ed5f66f11aa43aa2462c450e247a25793326b69a (diff) | |
download | nextcloud-server-2f9d59535ddad309863c5202b2c7dccf3cc8bd53.tar.gz nextcloud-server-2f9d59535ddad309863c5202b2c7dccf3cc8bd53.zip |
Merge pull request #7674 from nextcloud/12_7644
[stable12] Do no run SyncJob in cron
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/appinfo/info.xml | 5 | ||||
-rw-r--r-- | apps/dav/lib/CardDAV/SyncJob.php | 42 |
2 files changed, 1 insertions, 46 deletions
diff --git a/apps/dav/appinfo/info.xml b/apps/dav/appinfo/info.xml index 2d9f73b3f43..b4e136f039b 100644 --- a/apps/dav/appinfo/info.xml +++ b/apps/dav/appinfo/info.xml @@ -5,7 +5,7 @@ <description>WebDAV endpoint</description> <licence>AGPL</licence> <author>owncloud.org</author> - <version>1.3.0</version> + <version>1.3.1</version> <default_enable/> <types> <filesystem/> @@ -17,9 +17,6 @@ <dependencies> <nextcloud min-version="12" max-version="12" /> </dependencies> - <background-jobs> - <job>OCA\DAV\CardDAV\SyncJob</job> - </background-jobs> <repair-steps> <post-migration> <step>OCA\DAV\Migration\FixBirthdayCalendarComponent</step> diff --git a/apps/dav/lib/CardDAV/SyncJob.php b/apps/dav/lib/CardDAV/SyncJob.php deleted file mode 100644 index f0f8d51c2ca..00000000000 --- a/apps/dav/lib/CardDAV/SyncJob.php +++ /dev/null @@ -1,42 +0,0 @@ -<?php -/** - * @copyright Copyright (c) 2016, ownCloud, Inc. - * - * @author Joas Schilling <coding@schilljs.com> - * @author Thomas Müller <thomas.mueller@tmit.eu> - * - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * - */ - -namespace OCA\DAV\CardDAV; - -use OC\BackgroundJob\TimedJob; -use OCA\DAV\AppInfo\Application; - -class SyncJob extends TimedJob { - - public function __construct() { - // Run once a day - $this->setInterval(24 * 60 * 60); - } - - protected function run($argument) { - $app = new Application(); - /** @var SyncService $ss */ - $ss = $app->getSyncService(); - $ss->syncInstance(); - } -} |