diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-04-19 22:06:46 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-04-19 22:06:46 +0200 |
commit | e7ea0979f896795a6fec8b64102313a40c4726f2 (patch) | |
tree | 4bd687271a96c59f61b2cd5835bb4bede96c14ed /server/lib | |
parent | 8bf3013038f24409883f96b91e43995591a7ee2b (diff) | |
download | PeerTube-e7ea0979f896795a6fec8b64102313a40c4726f2.tar.gz PeerTube-e7ea0979f896795a6fec8b64102313a40c4726f2.tar.zst PeerTube-e7ea0979f896795a6fec8b64102313a40c4726f2.zip |
Use lodash v4
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/poolRequests.js | 6 |
1 files changed, 3 insertions, 3 deletions
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 | ||
3 | const async = require('async') | 3 | const async = require('async') |
4 | const pluck = require('lodash-node/compat/collection/pluck') | 4 | const map = require('lodash-node/compat/collection/map') |
5 | 5 | ||
6 | const constants = require('../initializers/constants') | 6 | const constants = require('../initializers/constants') |
7 | const logger = require('../helpers/logger') | 7 | const 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) { |