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