Browse Source

Indent map

pm2
Luke Childs 9 years ago
parent
commit
081574acf9
  1. 3
      viewModels/listing.js

3
viewModels/listing.js

@ -12,7 +12,8 @@ module.exports = (req, res) => {
return Promise.all(nodes.map(node => onionoo.details({ lookup: node.f || node.h }))); return Promise.all(nodes.map(node => onionoo.details({ lookup: node.f || node.h })));
}) })
.then(summaryDetails => { .then(summaryDetails => {
const nodes = summaryDetails.map(details => { const nodes = summaryDetails
.map(details => {
if(details.relays[0]) { if(details.relays[0]) {
details.relays[0].type = 'relay'; details.relays[0].type = 'relay';
return details.relays[0]; return details.relays[0];

Loading…
Cancel
Save