]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/v1/videos.js
Video model: namePath -> filename
[github/Chocobozzz/PeerTube.git] / server / controllers / api / v1 / videos.js
index 83734b35e7581f55481a1a009ae07acbe4c747ea..d06ec8d08b120abb87d3a2926918c04be84c5606 100644 (file)
@@ -90,7 +90,7 @@ function addVideo (req, res, next) {
     function insertIntoDB (callback) {
       const videoData = {
         name: videoInfos.name,
-        namePath: videoFile.filename,
+        filename: videoFile.filename,
         description: videoInfos.description,
         author: res.locals.oauth.token.user.username,
         duration: videoFile.duration,