X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Fapi%2Fv1%2Fvideos.js;h=1f939b077f1f80711c3560142a9c7f5708360319;hb=1a42c9e2c0fb64cdbebd81b311736e752f591e0a;hp=a37e9278e30576e78a4b19e7865cb50e5b12218c;hpb=d56ec0d4129160a6e3b51ace3766bb325db1f101;p=github%2FChocobozzz%2FPeerTube.git 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 @@ 'use strict' -const async = require('async') const config = require('config') const express = require('express') const mongoose = require('mongoose') const multer = require('multer') +const waterfall = require('async/waterfall') const logger = require('../../../helpers/logger') const friends = require('../../../lib/friends') @@ -85,7 +85,7 @@ function addVideo (req, res, next) { const videoFile = req.files.videofile[0] const videoInfos = req.body - async.waterfall([ + waterfall([ function insertIntoDB (callback) { const videoData = { @@ -152,7 +152,7 @@ function listVideos (req, res, next) { function removeVideo (req, res, next) { const videoId = req.params.id - async.waterfall([ + waterfall([ function getVideo (callback) { Video.load(videoId, callback) },