Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Use lodash v4

Chocobozzze7ea0979f896
diff --git a/package.json b/package.json
index 678804ed24..242e1beb2d 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 2eb501311d..6fe0cb1858 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) {