diff options
author | Chocobozzz <me@florianbigard.com> | 2019-06-06 15:39:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-06-06 15:39:11 +0200 |
commit | 60919831276e9c9e9900258bec82b6c31e9e5dd3 (patch) | |
tree | 4c2396a9a8d0c4edfb07b14fab4207409520e9e1 /shared/extra-utils/users/users.ts | |
parent | ad3405d087b306efa5eb62a69c9b797b04eab4ce (diff) | |
download | PeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.tar.gz PeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.tar.zst PeerTube-60919831276e9c9e9900258bec82b6c31e9e5dd3.zip |
Upgrade server dependencies
Diffstat (limited to 'shared/extra-utils/users/users.ts')
-rw-r--r-- | shared/extra-utils/users/users.ts | 12 |
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) { | |||
160 | function getUsersListPaginationAndSort (url: string, accessToken: string, start: number, count: number, sort: string, search?: string) { | 160 | function 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) |