diff options
Diffstat (limited to 'server/controllers/api/v1/videos.js')
-rw-r--r-- | server/controllers/api/v1/videos.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/v1/videos.js b/server/controllers/api/v1/videos.js index a37e9278e..1f939b077 100644 --- a/server/controllers/api/v1/videos.js +++ b/server/controllers/api/v1/videos.js | |||
@@ -1,10 +1,10 @@ | |||
1 | 'use strict' | 1 | 'use strict' |
2 | 2 | ||
3 | const async = require('async') | ||
4 | const config = require('config') | 3 | const config = require('config') |
5 | const express = require('express') | 4 | const express = require('express') |
6 | const mongoose = require('mongoose') | 5 | const mongoose = require('mongoose') |
7 | const multer = require('multer') | 6 | const multer = require('multer') |
7 | const waterfall = require('async/waterfall') | ||
8 | 8 | ||
9 | const logger = require('../../../helpers/logger') | 9 | const logger = require('../../../helpers/logger') |
10 | const friends = require('../../../lib/friends') | 10 | const friends = require('../../../lib/friends') |
@@ -85,7 +85,7 @@ function addVideo (req, res, next) { | |||
85 | const videoFile = req.files.videofile[0] | 85 | const videoFile = req.files.videofile[0] |
86 | const videoInfos = req.body | 86 | const videoInfos = req.body |
87 | 87 | ||
88 | async.waterfall([ | 88 | waterfall([ |
89 | 89 | ||
90 | function insertIntoDB (callback) { | 90 | function insertIntoDB (callback) { |
91 | const videoData = { | 91 | const videoData = { |
@@ -152,7 +152,7 @@ function listVideos (req, res, next) { | |||
152 | function removeVideo (req, res, next) { | 152 | function removeVideo (req, res, next) { |
153 | const videoId = req.params.id | 153 | const videoId = req.params.id |
154 | 154 | ||
155 | async.waterfall([ | 155 | waterfall([ |
156 | function getVideo (callback) { | 156 | function getVideo (callback) { |
157 | Video.load(videoId, callback) | 157 | Video.load(videoId, callback) |
158 | }, | 158 | }, |