This commit is contained in:
Overtorment 2018-12-03 14:06:12 +00:00
parent f05bdb3365
commit 748b5fd733
2 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,7 @@ export class User {
invoice.type = 'paid_invoice';
invoice.fee = parseInt(invoice.payment_route.total_fees_msat / 1000);
invoice.value = parseInt((invoice.payment_route.total_fees_msat + invoice.payment_route.total_amt_msat) / 1000);
invoice.timestamp = invoice.decoded.timestamp;
result.push(invoice);
}

View File

@ -203,6 +203,7 @@ router.get('/gettxs', async function(req, res) {
return errorBadAuth(res);
}
await u.accountForPosibleTxids();
let txs = await u.getTxs();
res.send(txs);
});
@ -213,6 +214,7 @@ router.get('/getpending', async function(req, res) {
return errorBadAuth(res);
}
await u.accountForPosibleTxids();
let txs = await u.getPendingTxs();
res.send(txs);
});