From 9593a78ae1368a9ad8bb11044fce6fde2892701a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Oct 2021 09:10:01 +0200 Subject: Refactor sort middlewares --- server/controllers/api/server/follows.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/controllers/api') diff --git a/server/controllers/api/server/follows.ts b/server/controllers/api/server/follows.ts index 2e0fd25eb..76ed75186 100644 --- a/server/controllers/api/server/follows.ts +++ b/server/controllers/api/server/follows.ts @@ -21,8 +21,8 @@ import { } from '../../../middlewares' import { acceptOrRejectFollowerValidator, - followersSortValidator, - followingSortValidator, + instanceFollowersSortValidator, + instanceFollowingSortValidator, followValidator, getFollowerValidator, listFollowsValidator, @@ -35,7 +35,7 @@ const serverFollowsRouter = express.Router() serverFollowsRouter.get('/following', listFollowsValidator, paginationValidator, - followingSortValidator, + instanceFollowingSortValidator, setDefaultSort, setDefaultPagination, asyncMiddleware(listFollowing) @@ -59,7 +59,7 @@ serverFollowsRouter.delete('/following/:hostOrHandle', serverFollowsRouter.get('/followers', listFollowsValidator, paginationValidator, - followersSortValidator, + instanceFollowersSortValidator, setDefaultSort, setDefaultPagination, asyncMiddleware(listFollowers) -- cgit v1.2.3