diff options
author | yemkareems <yemkareems@gmail.com> | 2024-07-02 10:18:09 +0530 |
---|---|---|
committer | yemkareems <yemkareems@gmail.com> | 2024-07-08 15:42:55 +0530 |
commit | afa51365ffc6d514a96ea6af73e6079726033fb6 (patch) | |
tree | 482bb034a31fdb173cdc2133d15025ca47e9fce6 /lib/private/User | |
parent | c701ef1ed5b75cf454a261fa2e74b98662b28b7b (diff) | |
download | nextcloud-server-afa51365ffc6d514a96ea6af73e6079726033fb6.tar.gz nextcloud-server-afa51365ffc6d514a96ea6af73e6079726033fb6.zip |
fix: removed the params related to sortMode and order since it sorts by lastLogin
Signed-off-by: yemkareems <yemkareems@gmail.com>
Diffstat (limited to 'lib/private/User')
-rw-r--r-- | lib/private/User/Manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php index 57dadfea194..0ae24397f5f 100644 --- a/lib/private/User/Manager.php +++ b/lib/private/User/Manager.php @@ -345,8 +345,8 @@ class Manager extends PublicEmitter implements IUserManager { /** * @return IUser[] */ - public function getUsersSortedByLastLogin(?int $limit = null, int $offset = 0, $search = '', $sortMode = 'lastLogin', $sortOrder = 'desc'): array { - $users = $this->config->getLastLoggedInUsers($search, $sortMode, $sortOrder); + public function getUsersSortedByLastLogin(?int $limit = null, int $offset = 0, $search = ''): array { + $users = $this->config->getLastLoggedInUsers($search); $users = array_combine( $users, array_map( |