|
@ -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]; |
|
|