diff options
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/search.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/middlewares/validators/search.ts b/server/middlewares/validators/search.ts index 6a95d6095..7816d229c 100644 --- a/server/middlewares/validators/search.ts +++ b/server/middlewares/validators/search.ts | |||
@@ -10,6 +10,9 @@ const videosSearchValidator = [ | |||
10 | query('startDate').optional().custom(isDateValid).withMessage('Should have a valid start date'), | 10 | query('startDate').optional().custom(isDateValid).withMessage('Should have a valid start date'), |
11 | query('endDate').optional().custom(isDateValid).withMessage('Should have a valid end date'), | 11 | query('endDate').optional().custom(isDateValid).withMessage('Should have a valid end date'), |
12 | 12 | ||
13 | query('originallyPublishedStartDate').optional().custom(isDateValid).withMessage('Should have a valid published start date'), | ||
14 | query('originallyPublishedEndDate').optional().custom(isDateValid).withMessage('Should have a valid published end date'), | ||
15 | |||
13 | query('durationMin').optional().isInt().withMessage('Should have a valid min duration'), | 16 | query('durationMin').optional().isInt().withMessage('Should have a valid min duration'), |
14 | query('durationMax').optional().isInt().withMessage('Should have a valid max duration'), | 17 | query('durationMax').optional().isInt().withMessage('Should have a valid max duration'), |
15 | 18 | ||