1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Server: add updatedAt attribute to videos

This commit is contained in:
Chocobozzz 2016-12-30 11:45:00 +01:00
parent 3d118fb501
commit 79066fdf33
6 changed files with 26 additions and 5 deletions

View file

@ -28,6 +28,7 @@ function isEachRemoteVideosValid (requests) {
isRequestTypeAddValid(request.type) &&
isVideoAuthorValid(video.author) &&
isVideoDateValid(video.createdAt) &&
isVideoDateValid(video.updatedAt) &&
isVideoDescriptionValid(video.description) &&
isVideoDurationValid(video.duration) &&
isVideoInfoHashValid(video.infoHash) &&
@ -40,6 +41,7 @@ function isEachRemoteVideosValid (requests) {
(
isRequestTypeUpdateValid(request.type) &&
isVideoDateValid(video.createdAt) &&
isVideoDateValid(video.updatedAt) &&
isVideoDescriptionValid(video.description) &&
isVideoDurationValid(video.duration) &&
isVideoInfoHashValid(video.infoHash) &&