mirror of https://github.com/Chocobozzz/PeerTube
Use lodash v4
parent
8bf3013038
commit
e7ea0979f8
|
@ -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",
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue