aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-13 20:42:11 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-13 20:42:11 +0200
commitbb10240ee15d31a1cc17c0e3d748dde817e7d0cb (patch)
treed8063b68473aaf1c5f1debc241ebf0d3cb3e7391 /server/helpers
parent3fe81fa75eef5320876441539ab89988a04a6c49 (diff)
downloadPeerTube-bb10240ee15d31a1cc17c0e3d748dde817e7d0cb.tar.gz
PeerTube-bb10240ee15d31a1cc17c0e3d748dde817e7d0cb.tar.zst
PeerTube-bb10240ee15d31a1cc17c0e3d748dde817e7d0cb.zip
Add createdDate to videos
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/customValidators.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/customValidators.js b/server/helpers/customValidators.js
index 0fbabab52..a8fc6942d 100644
--- a/server/helpers/customValidators.js
+++ b/server/helpers/customValidators.js
@@ -14,7 +14,8 @@ function eachIsRemoteVideosAddValid (values) {
14 validator.isLength(val.description, 1, 50) && 14 validator.isLength(val.description, 1, 50) &&
15 validator.isLength(val.magnetUri, 10) && 15 validator.isLength(val.magnetUri, 10) &&
16 validator.isURL(val.podUrl) && 16 validator.isURL(val.podUrl) &&
17 !isNaN(val.duration) 17 !isNaN(val.duration) &&
18 validator.isDate(val.createdDate)
18 }) 19 })
19} 20}
20 21