Merge pull request #40416 from nextcloud/fix/noid/check-for-user-count

This commit is contained in:
Daniel 2023-09-15 11:50:37 +02:00 committed by GitHub
commit 4a8bb597b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ class Version1027Date20230504122946 extends SimpleMigrationStep {
* @param array $options
*/
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
if($this->userManager->countUsers() > 1000) {
if($this->userManager->countSeenUsers() > 1000) {
$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;