Browse Source

1

dependabot/npm_and_yarn/ini-1.3.7
Evan Feenstra 4 years ago
parent
commit
3cdfdceb65
  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

@ -103,6 +103,7 @@ exports.getBalance = (req, res) => __awaiter(void 0, void 0, void 0, function* (
response.reserve = channels.reduce((a, chan) => a + parseInt(chan.local_constraints.chan_reserve_sat), 0);
}
catch (e) {
console.log("ERROR getBalance", e);
res.json({ success: false });
}
res.end();

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

File diff suppressed because one or more lines are too long

1
src/controllers/details.ts

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

Loading…
Cancel
Save