diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-19 09:10:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-20 09:25:44 +0200 |
commit | 9593a78ae1368a9ad8bb11044fce6fde2892701a (patch) | |
tree | 6a048d32cdcfdfc3c1ea6c02c4a86d8861bac1e7 /server/controllers | |
parent | 9c58375c082dc044f683487e81c0a80a10b3a087 (diff) | |
download | PeerTube-9593a78ae1368a9ad8bb11044fce6fde2892701a.tar.gz PeerTube-9593a78ae1368a9ad8bb11044fce6fde2892701a.tar.zst PeerTube-9593a78ae1368a9ad8bb11044fce6fde2892701a.zip |
Refactor sort middlewares
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/server/follows.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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 { | |||
21 | } from '../../../middlewares' | 21 | } from '../../../middlewares' |
22 | import { | 22 | import { |
23 | acceptOrRejectFollowerValidator, | 23 | acceptOrRejectFollowerValidator, |
24 | followersSortValidator, | 24 | instanceFollowersSortValidator, |
25 | followingSortValidator, | 25 | instanceFollowingSortValidator, |
26 | followValidator, | 26 | followValidator, |
27 | getFollowerValidator, | 27 | getFollowerValidator, |
28 | listFollowsValidator, | 28 | listFollowsValidator, |
@@ -35,7 +35,7 @@ const serverFollowsRouter = express.Router() | |||
35 | serverFollowsRouter.get('/following', | 35 | serverFollowsRouter.get('/following', |
36 | listFollowsValidator, | 36 | listFollowsValidator, |
37 | paginationValidator, | 37 | paginationValidator, |
38 | followingSortValidator, | 38 | instanceFollowingSortValidator, |
39 | setDefaultSort, | 39 | setDefaultSort, |
40 | setDefaultPagination, | 40 | setDefaultPagination, |
41 | asyncMiddleware(listFollowing) | 41 | asyncMiddleware(listFollowing) |
@@ -59,7 +59,7 @@ serverFollowsRouter.delete('/following/:hostOrHandle', | |||
59 | serverFollowsRouter.get('/followers', | 59 | serverFollowsRouter.get('/followers', |
60 | listFollowsValidator, | 60 | listFollowsValidator, |
61 | paginationValidator, | 61 | paginationValidator, |
62 | followersSortValidator, | 62 | instanceFollowersSortValidator, |
63 | setDefaultSort, | 63 | setDefaultSort, |
64 | setDefaultPagination, | 64 | setDefaultPagination, |
65 | asyncMiddleware(listFollowers) | 65 | asyncMiddleware(listFollowers) |