Browse Source

fix

dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
parent
commit
412e3610c1
  1. 1
      dist/src/controllers/details.js
  2. 2
      dist/src/controllers/details.js.map
  3. 1
      src/controllers/details.ts

1
dist/src/controllers/details.js

@ -101,6 +101,7 @@ exports.getBalance = (req, res) => __awaiter(void 0, void 0, void 0, function* (
const channelList = yield lightning_1.listChannels();
const { channels } = channelList;
response.reserve = channels.reduce((a, chan) => a + parseInt(chan.local_chan_reserve_sat), 0);
res.json({ success: true, response });
}
catch (e) {
console.log("ERROR getBalance", e);

2
dist/src/controllers/details.js.map

File diff suppressed because one or more lines are too long

1
src/controllers/details.ts

@ -89,6 +89,7 @@ export const getBalance = async (req, res) => {
const channelList = await listChannels()
const { channels } = channelList
response.reserve = channels.reduce((a, chan) => a + parseInt(chan.local_chan_reserve_sat), 0)
res.json({ success: true, response });
} catch(e) {
console.log("ERROR getBalance",e)
res.json({ success: false });

Loading…
Cancel
Save