summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-05-02 16:42:09 +0200
committerGitHub <noreply@github.com>2023-05-02 16:42:09 +0200
commitf7632f2fc4660ebc74240a9dd738b6e03a711eaa (patch)
treedcdc484ad3f69f9e3eb785192048c06bb09e6e98 /core/Command
parentac56be10fbd02c09bdeebcaa69d57aaae6613b9f (diff)
parent10296ba7e50ede8eee0ed18f477eb3e67bfd5878 (diff)
downloadnextcloud-server-f7632f2fc4660ebc74240a9dd738b6e03a711eaa.tar.gz
nextcloud-server-f7632f2fc4660ebc74240a9dd738b6e03a711eaa.zip
Merge pull request #32866 from nextcloud/performance/searchInGroup-displayname-cache
Optimize retrieving display name when searching for users in a group
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/User/ListCommand.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/User/ListCommand.php b/core/Command/User/ListCommand.php
index c254a8a11cf..bf4bf7f030e 100644
--- a/core/Command/User/ListCommand.php
+++ b/core/Command/User/ListCommand.php
@@ -74,7 +74,7 @@ class ListCommand extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output): int {
- $users = $this->userManager->search('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
+ $users = $this->userManager->searchDisplayName('', (int) $input->getOption('limit'), (int) $input->getOption('offset'));
$this->writeArrayInOutputFormat($input, $output, $this->formatUsers($users, (bool)$input->getOption('info')));
return 0;