aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2023-11-22 20:36:11 +0100
committerGitHub <noreply@github.com>2023-11-22 20:36:11 +0100
commite490ac6e8b6cdb06141f6bdb3357387033813b70 (patch)
treeb84d55a9148a00286b431f40b871b7d7219836f7 /apps
parent83c6db44c73208c217574d65b474d068fdc518e3 (diff)
parent7b74b07046035e3bb0ba82298472a72ce9b287cc (diff)
downloadnextcloud-server-e490ac6e8b6cdb06141f6bdb3357387033813b70.tar.gz
nextcloud-server-e490ac6e8b6cdb06141f6bdb3357387033813b70.zip
Merge pull request #41649 from nextcloud/bug/noid/lower-sync-threshold
fix: lower threshold for system address book sync
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Migration/Version1027Date20230504122946.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Migration/Version1027Date20230504122946.php b/apps/dav/lib/Migration/Version1027Date20230504122946.php
index 6d0ac9f6f86..b1aaec0559b 100644
--- a/apps/dav/lib/Migration/Version1027Date20230504122946.php
+++ b/apps/dav/lib/Migration/Version1027Date20230504122946.php
@@ -49,7 +49,7 @@ class Version1027Date20230504122946 extends SimpleMigrationStep {
* @param array $options
*/
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
- if($this->userManager->countSeenUsers() > 1000) {
+ if($this->userManager->countSeenUsers() > 100 || array_sum($this->userManager->countUsers()) > 100) {
$this->config->setAppValue('dav', 'needs_system_address_book_sync', 'yes');
$output->info('Could not sync system address books during update - too many user records have been found. Please call occ dav:sync-system-addressbook manually.');
return;