Skip to content

Commit 4a8bb59

Browse files
authored
Merge pull request #40416 from nextcloud/fix/noid/check-for-user-count
2 parents 48f5c7c + 108916c commit 4a8bb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dav/lib/Migration/Version1027Date20230504122946.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(private SyncService $syncService,
4949
* @param array $options
5050
*/
5151
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
52-
if($this->userManager->countUsers() > 1000) {
52+
if($this->userManager->countSeenUsers() > 1000) {
5353
$this->config->setAppValue('dav', 'needs_system_address_book_sync', 'yes');
5454
$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.');
5555
return;

0 commit comments

Comments
 (0)