mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Make user list pagination more tolerant
In case the server returns more results than expected by the limit, it is now still interpreted as there being more results to query. This situation can happen when there are multiple user backends in place. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
ee8c35614a
commit
a1e7ac9e33
3 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -220,7 +220,7 @@ const actions = {
|
|||
.then((response) => {
|
||||
if (Object.keys(response.data.ocs.data.users).length > 0) {
|
||||
context.commit('appendUsers', response.data.ocs.data.users)
|
||||
return Object.keys(response.data.ocs.data.users).length === limit
|
||||
return Object.keys(response.data.ocs.data.users).length >= limit
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
|
@ -237,7 +237,7 @@ const actions = {
|
|||
.then((response) => {
|
||||
if (Object.keys(response.data.ocs.data.users).length > 0) {
|
||||
context.commit('appendUsers', response.data.ocs.data.users)
|
||||
return Object.keys(response.data.ocs.data.users).length === limit
|
||||
return Object.keys(response.data.ocs.data.users).length >= limit
|
||||
}
|
||||
return false
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue