Server: add createdAt from remote video in database

pull/30/head
Chocobozzz 2016-12-25 12:06:08 +01:00
parent 56ac84d0a3
commit 124648d7fc
1 changed files with 2 additions and 1 deletions

View File

@ -135,7 +135,8 @@ function addRemoteVideo (videoToCreateData, fromHost, finalCallback) {
infoHash: videoToCreateData.infoHash,
description: videoToCreateData.description,
authorId: author.id,
duration: videoToCreateData.duration
duration: videoToCreateData.duration,
createdAt: videoToCreateData.createdAt
}
const video = db.Video.build(videoData)