From e7ea0979f896795a6fec8b64102313a40c4726f2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Apr 2016 22:06:46 +0200 Subject: [PATCH] Use lodash v4 --- package.json | 2 +- server/lib/poolRequests.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 678804ed2..242e1beb2 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/server/lib/poolRequests.js b/server/lib/poolRequests.js index 2eb501311..6fe0cb185 100644 --- a/server/lib/poolRequests.js +++ b/server/lib/poolRequests.js @@ -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) {