From c74c9be934fa1584edf6f4f7a41f00c4d3f2a8b3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Feb 2019 11:47:23 +0100 Subject: Refractor published date on video import --- server/middlewares/validators/search.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/middlewares/validators') 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 = [ query('startDate').optional().custom(isDateValid).withMessage('Should have a valid start date'), query('endDate').optional().custom(isDateValid).withMessage('Should have a valid end date'), + query('originallyPublishedStartDate').optional().custom(isDateValid).withMessage('Should have a valid published start date'), + query('originallyPublishedEndDate').optional().custom(isDateValid).withMessage('Should have a valid published end date'), + query('durationMin').optional().isInt().withMessage('Should have a valid min duration'), query('durationMax').optional().isInt().withMessage('Should have a valid max duration'), -- cgit v1.2.3