aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-12 11:47:23 +0100
committerChocobozzz <me@florianbigard.com>2019-02-12 11:47:23 +0100
commitc74c9be934fa1584edf6f4f7a41f00c4d3f2a8b3 (patch)
tree42370ebba95a968b45e59bbc81ae40947b541174 /server/middlewares/validators
parent84929846e743f4b5f3971b386ea2c447db8c416f (diff)
downloadPeerTube-c74c9be934fa1584edf6f4f7a41f00c4d3f2a8b3.tar.gz
PeerTube-c74c9be934fa1584edf6f4f7a41f00c4d3f2a8b3.tar.zst
PeerTube-c74c9be934fa1584edf6f4f7a41f00c4d3f2a8b3.zip
Refractor published date on video import
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r--server/middlewares/validators/search.ts3
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