From 5189d08aac7b022a56cf765277558782d151d92f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 28 Jun 2016 20:19:41 +0200 Subject: Video model: namePath -> filename --- server/controllers/api/v1/videos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/api/v1') 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) { 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, -- cgit v1.2.3