aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-04-19 22:06:46 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-04-19 22:06:46 +0200
commite7ea0979f896795a6fec8b64102313a40c4726f2 (patch)
tree4bd687271a96c59f61b2cd5835bb4bede96c14ed
parent8bf3013038f24409883f96b91e43995591a7ee2b (diff)
downloadPeerTube-e7ea0979f896795a6fec8b64102313a40c4726f2.tar.gz
PeerTube-e7ea0979f896795a6fec8b64102313a40c4726f2.tar.zst
PeerTube-e7ea0979f896795a6fec8b64102313a40c4726f2.zip
Use lodash v4
-rw-r--r--package.json2
-rw-r--r--server/lib/poolRequests.js6
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 @@
51 "express-oauth-server": "https://github.com/Chocobozzz/express-oauth-server", 51 "express-oauth-server": "https://github.com/Chocobozzz/express-oauth-server",
52 "express-validator": "^2.11.0", 52 "express-validator": "^2.11.0",
53 "js-yaml": "^3.5.4", 53 "js-yaml": "^3.5.4",
54 "lodash-node": "^3.10.2", 54 "lodash": "^4.11.1",
55 "mkdirp": "^0.5.1", 55 "mkdirp": "^0.5.1",
56 "mongoose": "^4.0.5", 56 "mongoose": "^4.0.5",
57 "morgan": "^1.5.3", 57 "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 @@
1'use strict' 1'use strict'
2 2
3const async = require('async') 3const async = require('async')
4const pluck = require('lodash-node/compat/collection/pluck') 4const map = require('lodash-node/compat/collection/map')
5 5
6const constants = require('../initializers/constants') 6const constants = require('../initializers/constants')
7const logger = require('../helpers/logger') 7const logger = require('../helpers/logger')
@@ -184,8 +184,8 @@ function removeBadPods () {
184 184
185 if (pods.length === 0) return 185 if (pods.length === 0) return
186 186
187 const urls = pluck(pods, 'url') 187 const urls = map(pods, 'url')
188 const ids = pluck(pods, '_id') 188 const ids = map(pods, '_id')
189 189
190 Videos.removeAllRemotesOf(urls, function (err, r) { 190 Videos.removeAllRemotesOf(urls, function (err, r) {
191 if (err) { 191 if (err) {