aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-12-25 12:06:08 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-12-25 12:06:08 +0100
commit124648d7fcfc3c9a91fe702cbc40c317429c05bd (patch)
tree76e074bedc734120126e30ff8ecfa489534ba9dc /server
parent56ac84d0a32844c7b7df4c584dccb6e6c17e35de (diff)
downloadPeerTube-124648d7fcfc3c9a91fe702cbc40c317429c05bd.tar.gz
PeerTube-124648d7fcfc3c9a91fe702cbc40c317429c05bd.tar.zst
PeerTube-124648d7fcfc3c9a91fe702cbc40c317429c05bd.zip
Server: add createdAt from remote video in database
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/remote.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/api/remote.js b/server/controllers/api/remote.js
index c7a5658e8..2cf916ff3 100644
--- a/server/controllers/api/remote.js
+++ b/server/controllers/api/remote.js
@@ -135,7 +135,8 @@ function addRemoteVideo (videoToCreateData, fromHost, finalCallback) {
135 infoHash: videoToCreateData.infoHash, 135 infoHash: videoToCreateData.infoHash,
136 description: videoToCreateData.description, 136 description: videoToCreateData.description,
137 authorId: author.id, 137 authorId: author.id,
138 duration: videoToCreateData.duration 138 duration: videoToCreateData.duration,
139 createdAt: videoToCreateData.createdAt
139 } 140 }
140 141
141 const video = db.Video.build(videoData) 142 const video = db.Video.build(videoData)