aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Command
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2023-08-17 10:19:10 +0200
committerDaniel <mail@danielkesselberg.de>2023-08-26 17:21:50 +0200
commit7f11ee8c4af3305ad2ecb90b1f400ee79b74c51c (patch)
tree05df07ea22b353b2490c6a6fb9118044b69e8b9d /apps/dav/lib/Command
parentefeb517eddc7f29857a5d633b5a00655c74f2465 (diff)
downloadnextcloud-server-7f11ee8c4af3305ad2ecb90b1f400ee79b74c51c.tar.gz
nextcloud-server-7f11ee8c4af3305ad2ecb90b1f400ee79b74c51c.zip
fix(CardDAV): only run upgrade sync if 1000 users or less
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/Command')
-rw-r--r--apps/dav/lib/Command/SyncSystemAddressBook.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/dav/lib/Command/SyncSystemAddressBook.php b/apps/dav/lib/Command/SyncSystemAddressBook.php
index 272cca5a08e..86a9ea26b73 100644
--- a/apps/dav/lib/Command/SyncSystemAddressBook.php
+++ b/apps/dav/lib/Command/SyncSystemAddressBook.php
@@ -24,22 +24,18 @@
namespace OCA\DAV\Command;
use OCA\DAV\CardDAV\SyncService;
+use OCP\IConfig;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class SyncSystemAddressBook extends Command {
-
- /** @var SyncService */
- private $syncService;
-
/**
* @param SyncService $syncService
*/
- public function __construct(SyncService $syncService) {
+ public function __construct(private SyncService $syncService, private IConfig $config) {
parent::__construct();
- $this->syncService = $syncService;
}
protected function configure() {
@@ -62,6 +58,7 @@ class SyncSystemAddressBook extends Command {
$progress->finish();
$output->writeln('');
+ $this->config->setAppValue('dav', 'needs_system_address_book_sync', 'no');
return 0;
}
}