aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/users
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/users')
-rw-r--r--shared/extra-utils/users/users.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/shared/extra-utils/users/users.ts b/shared/extra-utils/users/users.ts
index c00da19e0..0f2f0ae15 100644
--- a/shared/extra-utils/users/users.ts
+++ b/shared/extra-utils/users/users.ts
@@ -160,12 +160,16 @@ function getUsersList (url: string, accessToken: string) {
160function getUsersListPaginationAndSort (url: string, accessToken: string, start: number, count: number, sort: string, search?: string) { 160function getUsersListPaginationAndSort (url: string, accessToken: string, start: number, count: number, sort: string, search?: string) {
161 const path = '/api/v1/users' 161 const path = '/api/v1/users'
162 162
163 const query = {
164 start,
165 count,
166 sort,
167 search
168 }
169
163 return request(url) 170 return request(url)
164 .get(path) 171 .get(path)
165 .query({ start }) 172 .query(query)
166 .query({ count })
167 .query({ sort })
168 .query({ search })
169 .set('Accept', 'application/json') 173 .set('Accept', 'application/json')
170 .set('Authorization', 'Bearer ' + accessToken) 174 .set('Authorization', 'Bearer ' + accessToken)
171 .expect(200) 175 .expect(200)