FIX
This commit is contained in:
parent
f05bdb3365
commit
748b5fd733
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user