diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-18 17:17:52 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-18 17:17:52 +0200 |
commit | 1a42c9e2c0fb64cdbebd81b311736e752f591e0a (patch) | |
tree | e893324d730878257491428ffca634a92f1eea05 /server/controllers/api/v1/videos.js | |
parent | d56ec0d4129160a6e3b51ace3766bb325db1f101 (diff) | |
download | PeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.tar.gz PeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.tar.zst PeerTube-1a42c9e2c0fb64cdbebd81b311736e752f591e0a.zip |
Server: udpate async to 2.0.0
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 | }, |