aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/users
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-06-06 15:39:11 +0200
committerChocobozzz <me@florianbigard.com>2019-06-06 15:39:11 +0200
commit60919831276e9c9e9900258bec82b6c31e9e5dd3 (patch)
tree4c2396a9a8d0c4edfb07b14fab4207409520e9e1 /shared/extra-utils/users
parentad3405d087b306efa5eb62a69c9b797b04eab4ce (diff)
downloadPeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.tar.gz
PeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.tar.zst
PeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.zip
Upgrade server dependencies
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)