Use lodash v4

pull/10/head
Chocobozzz 2016-04-19 22:06:46 +02:00
parent 8bf3013038
commit e7ea0979f8
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@
"express-oauth-server": "https://github.com/Chocobozzz/express-oauth-server",
"express-validator": "^2.11.0",
"js-yaml": "^3.5.4",
"lodash-node": "^3.10.2",
"lodash": "^4.11.1",
"mkdirp": "^0.5.1",
"mongoose": "^4.0.5",
"morgan": "^1.5.3",

View File

@ -1,7 +1,7 @@
'use strict'
const async = require('async')
const pluck = require('lodash-node/compat/collection/pluck')
const map = require('lodash-node/compat/collection/map')
const constants = require('../initializers/constants')
const logger = require('../helpers/logger')
@ -184,8 +184,8 @@ function removeBadPods () {
if (pods.length === 0) return
const urls = pluck(pods, 'url')
const ids = pluck(pods, '_id')
const urls = map(pods, 'url')
const ids = map(pods, '_id')
Videos.removeAllRemotesOf(urls, function (err, r) {
if (err) {