aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-09 11:21:36 +0200
committerChocobozzz <me@florianbigard.com>2019-04-09 11:24:15 +0200
commit22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b (patch)
treead8668b1480997f5e48cd5188630265aa21dfeba /server/controllers
parentc100a6142e6571312db9f6407698a21a08b593fb (diff)
downloadPeerTube-22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b.tar.gz
PeerTube-22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b.tar.zst
PeerTube-22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b.zip
Add check params account ratings tests
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/accounts.ts10
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 @@
1import * as express from 'express' 1import * as express from 'express'
2import { getFormattedObjects, getServerActor } from '../../helpers/utils' 2import { getFormattedObjects, getServerActor } from '../../helpers/utils'
3import { 3import {
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'
15import { 15import {
16 accountNameWithHostGetValidator, 16 accountNameWithHostGetValidator,
17 accountsSortValidator, 17 accountsSortValidator,
18 videosSortValidator, 18 ensureAuthUserOwnsAccountValidator,
19 ensureAuthUserOwnsAccountValidator 19 videosSortValidator
20} from '../../middlewares/validators' 20} from '../../middlewares/validators'
21import { AccountModel } from '../../models/account/account' 21import { AccountModel } from '../../models/account/account'
22import { AccountVideoRateModel } from '../../models/account/account-video-rate' 22import { AccountVideoRateModel } from '../../models/account/account-video-rate'