diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-17 10:50:33 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-18 15:42:20 +0100 |
commit | 1174a8479ab9ee47b3305d668fe757435057a298 (patch) | |
tree | 6d5e4702536c0d4b77c06ecab9e3db65c00d59d8 /server/controllers/api/users.ts | |
parent | 6139124c673af2af02032905544909a2583dda2b (diff) | |
download | PeerTube-1174a8479ab9ee47b3305d668fe757435057a298.tar.gz PeerTube-1174a8479ab9ee47b3305d668fe757435057a298.tar.zst PeerTube-1174a8479ab9ee47b3305d668fe757435057a298.zip |
Set sort refractoring
Diffstat (limited to 'server/controllers/api/users.ts')
-rw-r--r-- | server/controllers/api/users.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts index 5374c4b6a..0ca9b337a 100644 --- a/server/controllers/api/users.ts +++ b/server/controllers/api/users.ts | |||
@@ -12,8 +12,8 @@ import { updateActorAvatarInstance } from '../../lib/activitypub' | |||
12 | import { sendUpdateUser } from '../../lib/activitypub/send' | 12 | import { sendUpdateUser } from '../../lib/activitypub/send' |
13 | import { createUserAccountAndChannel } from '../../lib/user' | 13 | import { createUserAccountAndChannel } from '../../lib/user' |
14 | import { | 14 | import { |
15 | asyncMiddleware, authenticate, ensureUserHasRight, ensureUserRegistrationAllowed, paginationValidator, setPagination, setUsersSort, | 15 | asyncMiddleware, authenticate, ensureUserHasRight, ensureUserRegistrationAllowed, paginationValidator, setDefaultSort, |
16 | setVideosSort, token, usersAddValidator, usersGetValidator, usersRegisterValidator, usersRemoveValidator, usersSortValidator, | 16 | setPagination, token, usersAddValidator, usersGetValidator, usersRegisterValidator, usersRemoveValidator, usersSortValidator, |
17 | usersUpdateMeValidator, usersUpdateValidator, usersVideoRatingValidator | 17 | usersUpdateMeValidator, usersUpdateValidator, usersVideoRatingValidator |
18 | } from '../../middlewares' | 18 | } from '../../middlewares' |
19 | import { usersUpdateMyAvatarValidator, videosSortValidator } from '../../middlewares/validators' | 19 | import { usersUpdateMyAvatarValidator, videosSortValidator } from '../../middlewares/validators' |
@@ -39,7 +39,7 @@ usersRouter.get('/me/videos', | |||
39 | authenticate, | 39 | authenticate, |
40 | paginationValidator, | 40 | paginationValidator, |
41 | videosSortValidator, | 41 | videosSortValidator, |
42 | setVideosSort, | 42 | setDefaultSort, |
43 | setPagination, | 43 | setPagination, |
44 | asyncMiddleware(getUserVideos) | 44 | asyncMiddleware(getUserVideos) |
45 | ) | 45 | ) |
@@ -55,7 +55,7 @@ usersRouter.get('/', | |||
55 | ensureUserHasRight(UserRight.MANAGE_USERS), | 55 | ensureUserHasRight(UserRight.MANAGE_USERS), |
56 | paginationValidator, | 56 | paginationValidator, |
57 | usersSortValidator, | 57 | usersSortValidator, |
58 | setUsersSort, | 58 | setDefaultSort, |
59 | setPagination, | 59 | setPagination, |
60 | asyncMiddleware(listUsers) | 60 | asyncMiddleware(listUsers) |
61 | ) | 61 | ) |