aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators
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/middlewares/validators
parentc100a6142e6571312db9f6407698a21a08b593fb (diff)
downloadPeerTube-22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b.tar.gz
PeerTube-22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b.tar.zst
PeerTube-22834691abb6e74d31654ffd2ebeaaaa8ef3ac7b.zip
Add check params account ratings tests
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r--server/middlewares/validators/users.ts1
-rw-r--r--server/middlewares/validators/videos/video-rates.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/server/middlewares/validators/users.ts b/server/middlewares/validators/users.ts
index 35f41c450..eceded1c4 100644
--- a/server/middlewares/validators/users.ts
+++ b/server/middlewares/validators/users.ts
@@ -22,7 +22,6 @@ import { logger } from '../../helpers/logger'
22import { isSignupAllowed, isSignupAllowedForCurrentIP } from '../../helpers/signup' 22import { isSignupAllowed, isSignupAllowedForCurrentIP } from '../../helpers/signup'
23import { Redis } from '../../lib/redis' 23import { Redis } from '../../lib/redis'
24import { UserModel } from '../../models/account/user' 24import { UserModel } from '../../models/account/user'
25import { AccountModel } from '../../models/account/account'
26import { areValidationErrors } from './utils' 25import { areValidationErrors } from './utils'
27import { ActorModel } from '../../models/activitypub/actor' 26import { ActorModel } from '../../models/activitypub/actor'
28 27
diff --git a/server/middlewares/validators/videos/video-rates.ts b/server/middlewares/validators/videos/video-rates.ts
index e79d80e97..204b4a78d 100644
--- a/server/middlewares/validators/videos/video-rates.ts
+++ b/server/middlewares/validators/videos/video-rates.ts
@@ -1,7 +1,7 @@
1import * as express from 'express' 1import * as express from 'express'
2import 'express-validator' 2import 'express-validator'
3import { body, param, query } from 'express-validator/check' 3import { body, param, query } from 'express-validator/check'
4import { isIdOrUUIDValid, isIdValid } from '../../../helpers/custom-validators/misc' 4import { isIdOrUUIDValid } from '../../../helpers/custom-validators/misc'
5import { isRatingValid } from '../../../helpers/custom-validators/video-rates' 5import { isRatingValid } from '../../../helpers/custom-validators/video-rates'
6import { doesVideoExist, isVideoRatingTypeValid } from '../../../helpers/custom-validators/videos' 6import { doesVideoExist, isVideoRatingTypeValid } from '../../../helpers/custom-validators/videos'
7import { logger } from '../../../helpers/logger' 7import { logger } from '../../../helpers/logger'