aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/user-history.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/user-history.ts')
-rw-r--r--server/middlewares/validators/user-history.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/user-history.ts b/server/middlewares/validators/user-history.ts
index 541910be5..23a00888c 100644
--- a/server/middlewares/validators/user-history.ts
+++ b/server/middlewares/validators/user-history.ts
@@ -7,7 +7,7 @@ import { areValidationErrors } from './shared'
7const userHistoryListValidator = [ 7const userHistoryListValidator = [
8 query('search') 8 query('search')
9 .optional() 9 .optional()
10 .custom(exists).withMessage('Should have a valid search'), 10 .custom(exists),
11 11
12 (req: express.Request, res: express.Response, next: express.NextFunction) => { 12 (req: express.Request, res: express.Response, next: express.NextFunction) => {
13 logger.debug('Checking userHistoryListValidator parameters', { parameters: req.query }) 13 logger.debug('Checking userHistoryListValidator parameters', { parameters: req.query })
@@ -34,7 +34,7 @@ const userHistoryRemoveAllValidator = [
34 34
35const userHistoryRemoveElementValidator = [ 35const userHistoryRemoveElementValidator = [
36 param('videoId') 36 param('videoId')
37 .custom(isIdValid).withMessage('Should have a valid video id'), 37 .custom(isIdValid),
38 38
39 (req: express.Request, res: express.Response, next: express.NextFunction) => { 39 (req: express.Request, res: express.Response, next: express.NextFunction) => {
40 logger.debug('Checking userHistoryRemoveElementValidator parameters', { parameters: req.params }) 40 logger.debug('Checking userHistoryRemoveElementValidator parameters', { parameters: req.params })