From 60919831276e9c9e9900258bec82b6c31e9e5dd3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 6 Jun 2019 15:39:11 +0200 Subject: Upgrade server dependencies --- shared/extra-utils/users/users.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'shared/extra-utils/users') 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) { function getUsersListPaginationAndSort (url: string, accessToken: string, start: number, count: number, sort: string, search?: string) { const path = '/api/v1/users' + const query = { + start, + count, + sort, + search + } + return request(url) .get(path) - .query({ start }) - .query({ count }) - .query({ sort }) - .query({ search }) + .query(query) .set('Accept', 'application/json') .set('Authorization', 'Bearer ' + accessToken) .expect(200) -- cgit v1.2.3