aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/videos.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/api/videos.js b/server/controllers/api/videos.js
index dfd8699e6..5a67d1121 100644
--- a/server/controllers/api/videos.js
+++ b/server/controllers/api/videos.js
@@ -155,7 +155,8 @@ function addVideo (req, res, videoFile, finalCallback) {
155 extname: path.extname(videoFile.filename), 155 extname: path.extname(videoFile.filename),
156 description: videoInfos.description, 156 description: videoInfos.description,
157 duration: videoFile.duration, 157 duration: videoFile.duration,
158 authorId: author.id 158 authorId: author.id,
159 views: videoInfos.views
159 } 160 }
160 161
161 const video = db.Video.build(videoData) 162 const video = db.Video.build(videoData)