diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-06-28 20:19:41 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-06-28 20:19:41 +0200 |
commit | 5189d08aac7b022a56cf765277558782d151d92f (patch) | |
tree | 8d0dff23fb3448b1d0a05baaa1c0f9cf00646deb /server/controllers | |
parent | 907e9510c28b4b2816cba0c070e3feaa16b10ac3 (diff) | |
download | PeerTube-5189d08aac7b022a56cf765277558782d151d92f.tar.gz PeerTube-5189d08aac7b022a56cf765277558782d151d92f.tar.zst PeerTube-5189d08aac7b022a56cf765277558782d151d92f.zip |
Video model: namePath -> filename
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/v1/videos.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/v1/videos.js b/server/controllers/api/v1/videos.js index 83734b35e..d06ec8d08 100644 --- a/server/controllers/api/v1/videos.js +++ b/server/controllers/api/v1/videos.js | |||
@@ -90,7 +90,7 @@ function addVideo (req, res, next) { | |||
90 | function insertIntoDB (callback) { | 90 | function insertIntoDB (callback) { |
91 | const videoData = { | 91 | const videoData = { |
92 | name: videoInfos.name, | 92 | name: videoInfos.name, |
93 | namePath: videoFile.filename, | 93 | filename: videoFile.filename, |
94 | description: videoInfos.description, | 94 | description: videoInfos.description, |
95 | author: res.locals.oauth.token.user.username, | 95 | author: res.locals.oauth.token.user.username, |
96 | duration: videoFile.duration, | 96 | duration: videoFile.duration, |