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/server/follows.ts | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'shared/extra-utils/server/follows.ts') diff --git a/shared/extra-utils/server/follows.ts b/shared/extra-utils/server/follows.ts index 68c5a2e2b..0379bb109 100644 --- a/shared/extra-utils/server/follows.ts +++ b/shared/extra-utils/server/follows.ts @@ -6,12 +6,16 @@ import { makePostBodyRequest } from '../requests/requests' function getFollowersListPaginationAndSort (url: string, start: number, count: number, sort: string, search?: string) { const path = '/api/v1/server/followers' + 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') .expect(200) .expect('Content-Type', /json/) @@ -42,12 +46,16 @@ function rejectFollower (url: string, token: string, follower: string, statusCod function getFollowingListPaginationAndSort (url: string, start: number, count: number, sort: string, search?: string) { const path = '/api/v1/server/following' + 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') .expect(200) .expect('Content-Type', /json/) -- cgit v1.2.3