diff --git a/app/lib/dal/fileDAL.js b/app/lib/dal/fileDAL.js index 9742f9f40bd75955963a7b54ab18770fb9305b40..05a57b30e55c83e9cccc8c5c6845e6ed0e689271 100644 --- a/app/lib/dal/fileDAL.js +++ b/app/lib/dal/fileDAL.js @@ -474,7 +474,7 @@ function FileDAL(params) { this.listAllPeersWithStatusNewUPWithtout = () => co(function *() { const peers = yield that.peerDAL.listAll(); - return _.chain(peers).filter((p) => p.status == 'UP').filter((p) => p.pubkey); + return _.chain(peers).filter((p) => p.status == 'UP').filter((p) => p.pubkey).value(); }); this.findPeers = (pubkey) => co(function*() {