diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-09 11:21:36 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-09 11:24:15 +0200 |
commit | 22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b (patch) | |
tree | ad8668b1480997f5e48cd5188630265aa21dfeba /server/controllers/api | |
parent | c100a6142e6571312db9f6407698a21a08b593fb (diff) | |
download | PeerTube-22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b.tar.gz PeerTube-22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b.tar.zst PeerTube-22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b.zip |
Add check params account ratings tests
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/accounts.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/controllers/api/accounts.ts b/server/controllers/api/accounts.ts index aa01ea1eb..8d4db1e75 100644 --- a/server/controllers/api/accounts.ts +++ b/server/controllers/api/accounts.ts | |||
@@ -1,22 +1,22 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { getFormattedObjects, getServerActor } from '../../helpers/utils' | 2 | import { getFormattedObjects, getServerActor } from '../../helpers/utils' |
3 | import { | 3 | import { |
4 | authenticate, | ||
5 | asyncMiddleware, | 4 | asyncMiddleware, |
5 | authenticate, | ||
6 | commonVideosFiltersValidator, | 6 | commonVideosFiltersValidator, |
7 | videoRatingValidator, | ||
8 | optionalAuthenticate, | 7 | optionalAuthenticate, |
9 | paginationValidator, | 8 | paginationValidator, |
10 | setDefaultPagination, | 9 | setDefaultPagination, |
11 | setDefaultSort, | 10 | setDefaultSort, |
12 | videoPlaylistsSortValidator, | 11 | videoPlaylistsSortValidator, |
13 | videoRatesSortValidator | 12 | videoRatesSortValidator, |
13 | videoRatingValidator | ||
14 | } from '../../middlewares' | 14 | } from '../../middlewares' |
15 | import { | 15 | import { |
16 | accountNameWithHostGetValidator, | 16 | accountNameWithHostGetValidator, |
17 | accountsSortValidator, | 17 | accountsSortValidator, |
18 | videosSortValidator, | 18 | ensureAuthUserOwnsAccountValidator, |
19 | ensureAuthUserOwnsAccountValidator | 19 | videosSortValidator |
20 | } from '../../middlewares/validators' | 20 | } from '../../middlewares/validators' |
21 | import { AccountModel } from '../../models/account/account' | 21 | import { AccountModel } from '../../models/account/account' |
22 | import { AccountVideoRateModel } from '../../models/account/account-video-rate' | 22 | import { AccountVideoRateModel } from '../../models/account/account-video-rate' |