aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/remote.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/controllers/api/remote.js b/server/controllers/api/remote.js
index 254ae56d5..a36c31c38 100644
--- a/server/controllers/api/remote.js
+++ b/server/controllers/api/remote.js
@@ -98,7 +98,8 @@ function addRemoteVideo (videoToCreateData, fromPod, finalCallback) {
98 description: videoToCreateData.description, 98 description: videoToCreateData.description,
99 authorId: author.id, 99 authorId: author.id,
100 duration: videoToCreateData.duration, 100 duration: videoToCreateData.duration,
101 createdAt: videoToCreateData.createdAt 101 createdAt: videoToCreateData.createdAt,
102 updatedAt: videoToCreateData.updatedAt
102 } 103 }
103 104
104 const video = db.Video.build(videoData) 105 const video = db.Video.build(videoData)
@@ -190,6 +191,7 @@ function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) {
190 videoInstance.set('infoHash', videoAttributesToUpdate.infoHash) 191 videoInstance.set('infoHash', videoAttributesToUpdate.infoHash)
191 videoInstance.set('duration', videoAttributesToUpdate.duration) 192 videoInstance.set('duration', videoAttributesToUpdate.duration)
192 videoInstance.set('createdAt', videoAttributesToUpdate.createdAt) 193 videoInstance.set('createdAt', videoAttributesToUpdate.createdAt)
194 videoInstance.set('updatedAt', videoAttributesToUpdate.updatedAt)
193 videoInstance.set('extname', videoAttributesToUpdate.extname) 195 videoInstance.set('extname', videoAttributesToUpdate.extname)
194 196
195 videoInstance.save(options).asCallback(function (err) { 197 videoInstance.save(options).asCallback(function (err) {