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/videos/abuse.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/videos/abuse.ts')
-rw-r--r-- | server/controllers/api/videos/abuse.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/videos/abuse.ts b/server/controllers/api/videos/abuse.ts index e78f0f6fc..91594490b 100644 --- a/server/controllers/api/videos/abuse.ts +++ b/server/controllers/api/videos/abuse.ts | |||
@@ -6,8 +6,8 @@ import { getFormattedObjects } from '../../../helpers/utils' | |||
6 | import { sequelizeTypescript } from '../../../initializers' | 6 | import { sequelizeTypescript } from '../../../initializers' |
7 | import { sendVideoAbuse } from '../../../lib/activitypub/send' | 7 | import { sendVideoAbuse } from '../../../lib/activitypub/send' |
8 | import { | 8 | import { |
9 | asyncMiddleware, authenticate, ensureUserHasRight, paginationValidator, setPagination, setVideoAbusesSort, | 9 | asyncMiddleware, authenticate, ensureUserHasRight, paginationValidator, setDefaultSort, setPagination, videoAbuseReportValidator, |
10 | videoAbuseReportValidator, videoAbusesSortValidator | 10 | videoAbusesSortValidator |
11 | } from '../../../middlewares' | 11 | } from '../../../middlewares' |
12 | import { AccountModel } from '../../../models/account/account' | 12 | import { AccountModel } from '../../../models/account/account' |
13 | import { VideoModel } from '../../../models/video/video' | 13 | import { VideoModel } from '../../../models/video/video' |
@@ -20,7 +20,7 @@ abuseVideoRouter.get('/abuse', | |||
20 | ensureUserHasRight(UserRight.MANAGE_VIDEO_ABUSES), | 20 | ensureUserHasRight(UserRight.MANAGE_VIDEO_ABUSES), |
21 | paginationValidator, | 21 | paginationValidator, |
22 | videoAbusesSortValidator, | 22 | videoAbusesSortValidator, |
23 | setVideoAbusesSort, | 23 | setDefaultSort, |
24 | setPagination, | 24 | setPagination, |
25 | asyncMiddleware(listVideoAbuses) | 25 | asyncMiddleware(listVideoAbuses) |
26 | ) | 26 | ) |