X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fsearch.ts;h=7816d229c65aa9e6170a56ffc869bf8ca48faa0f;hb=c0e71e849a40871ed8eea3dacd8608d380bdb490;hp=6a95d60958feb4e2a9bd9d05ef2885a4f2c647a2;hpb=6d8c8ea73a774c3568e6d28a4cbebcf7979d5c2a;p=github%2FChocobozzz%2FPeerTube.git 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'),