mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 09:50:36 +01:00
Issue #14 Fix: Peer Added in the table
Issue #14 Fix: Peer Added in the table
This commit is contained in:
parent
e6c5b10be2
commit
df3e656473
@ -9,5 +9,5 @@
|
||||
<link rel="stylesheet" href="styles.e4aab088ea7dc1035ccf.css"></head>
|
||||
<body>
|
||||
<rtl-app></rtl-app>
|
||||
<script type="text/javascript" src="runtime.ec2944dd8b20ec099bf3.js"></script><script type="text/javascript" src="polyfills.b2575713cefb95077d85.js"></script><script type="text/javascript" src="main.e133f67d8d6cefff7cc0.js"></script></body>
|
||||
<script type="text/javascript" src="runtime.ec2944dd8b20ec099bf3.js"></script><script type="text/javascript" src="polyfills.b2575713cefb95077d85.js"></script><script type="text/javascript" src="main.878d0165b8c37c9796f3.js"></script></body>
|
||||
</html>
|
||||
|
1
angular/main.878d0165b8c37c9796f3.js
Normal file
1
angular/main.878d0165b8c37c9796f3.js
Normal file
File diff suppressed because one or more lines are too long
@ -48,7 +48,18 @@ exports.postPeer = (req, res, next) => {
|
||||
error: (undefined === body) ? 'Error From Server!' : body.error
|
||||
});
|
||||
} else {
|
||||
res.status(201).json({message: 'Peer Added!'});
|
||||
options.url = common.lnd_server_url + '/peers';
|
||||
request(options).then(function (body) {
|
||||
let peers = (undefined === body.peers) ? [] : body.peers;
|
||||
Promise.all(
|
||||
peers.map(peer => {
|
||||
return getAliasForPeers(peer);
|
||||
}))
|
||||
.then(function(values) {
|
||||
console.log(`\nPeers Fetched with Alias: ${JSON.stringify(body)}`);
|
||||
res.status(201).json(body.peers);
|
||||
});
|
||||
})
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user