mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Server: udpate async to 2.0.0
This commit is contained in:
parent
d56ec0d412
commit
1a42c9e2c0
15 changed files with 85 additions and 72 deletions
|
@ -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)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue