diff options
Diffstat (limited to 'server/middlewares/validators/users.ts')
-rw-r--r-- | server/middlewares/validators/users.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/users.ts b/server/middlewares/validators/users.ts index ab9d0938c..1a33cfd8c 100644 --- a/server/middlewares/validators/users.ts +++ b/server/middlewares/validators/users.ts | |||
@@ -13,7 +13,7 @@ import { | |||
13 | isUserPasswordValid, | 13 | isUserPasswordValid, |
14 | isUserVideoQuotaValid, | 14 | isUserVideoQuotaValid, |
15 | isUserDisplayNSFWValid, | 15 | isUserDisplayNSFWValid, |
16 | isVideoIdOrUUIDValid | 16 | isIdOrUUIDValid |
17 | } from '../../helpers' | 17 | } from '../../helpers' |
18 | import { UserInstance, VideoInstance } from '../../models' | 18 | import { UserInstance, VideoInstance } from '../../models' |
19 | 19 | ||
@@ -109,7 +109,7 @@ const usersGetValidator = [ | |||
109 | ] | 109 | ] |
110 | 110 | ||
111 | const usersVideoRatingValidator = [ | 111 | const usersVideoRatingValidator = [ |
112 | param('videoId').custom(isVideoIdOrUUIDValid).not().isEmpty().withMessage('Should have a valid video id'), | 112 | param('videoId').custom(isIdOrUUIDValid).not().isEmpty().withMessage('Should have a valid video id'), |
113 | 113 | ||
114 | (req: express.Request, res: express.Response, next: express.NextFunction) => { | 114 | (req: express.Request, res: express.Response, next: express.NextFunction) => { |
115 | logger.debug('Checking usersVideoRating parameters', { parameters: req.params }) | 115 | logger.debug('Checking usersVideoRating parameters', { parameters: req.params }) |