aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-12-30 11:45:00 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-12-30 11:45:00 +0100
commit79066fdf33f79d2d41394f10881e2c226ca26b49 (patch)
tree4e7356b1e0d56dd64dfe2039ca97326560495809 /server/helpers/custom-validators
parent3d118fb501f576a298f6bb059167e4c7f4dd8dcc (diff)
downloadPeerTube-79066fdf33f79d2d41394f10881e2c226ca26b49.tar.gz
PeerTube-79066fdf33f79d2d41394f10881e2c226ca26b49.tar.zst
PeerTube-79066fdf33f79d2d41394f10881e2c226ca26b49.zip
Server: add updatedAt attribute to videos
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/videos.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/helpers/custom-validators/videos.js b/server/helpers/custom-validators/videos.js
index b76eec1b5..8448386d9 100644
--- a/server/helpers/custom-validators/videos.js
+++ b/server/helpers/custom-validators/videos.js
@@ -28,6 +28,7 @@ function isEachRemoteVideosValid (requests) {
28 isRequestTypeAddValid(request.type) && 28 isRequestTypeAddValid(request.type) &&
29 isVideoAuthorValid(video.author) && 29 isVideoAuthorValid(video.author) &&
30 isVideoDateValid(video.createdAt) && 30 isVideoDateValid(video.createdAt) &&
31 isVideoDateValid(video.updatedAt) &&
31 isVideoDescriptionValid(video.description) && 32 isVideoDescriptionValid(video.description) &&
32 isVideoDurationValid(video.duration) && 33 isVideoDurationValid(video.duration) &&
33 isVideoInfoHashValid(video.infoHash) && 34 isVideoInfoHashValid(video.infoHash) &&
@@ -40,6 +41,7 @@ function isEachRemoteVideosValid (requests) {
40 ( 41 (
41 isRequestTypeUpdateValid(request.type) && 42 isRequestTypeUpdateValid(request.type) &&
42 isVideoDateValid(video.createdAt) && 43 isVideoDateValid(video.createdAt) &&
44 isVideoDateValid(video.updatedAt) &&
43 isVideoDescriptionValid(video.description) && 45 isVideoDescriptionValid(video.description) &&
44 isVideoDurationValid(video.duration) && 46 isVideoDurationValid(video.duration) &&
45 isVideoInfoHashValid(video.infoHash) && 47 isVideoInfoHashValid(video.infoHash) &&