ADD: preimage in /gettxs response

This commit is contained in:
Overtorment
2019-05-03 22:31:22 +01:00
parent cf5441c08a
commit cc4503ecbd
2 changed files with 4 additions and 2 deletions

View File

@@ -311,9 +311,11 @@ export class User {
invoice.timestamp = invoice.decoded.timestamp;
invoice.memo = invoice.decoded.description;
}
if (invoice.payment_preimage) {
invoice.payment_preimage = Buffer.from(invoice.payment_preimage, 'hex').toString('hex');
}
// removing unsued by client fields to reduce size
delete invoice.payment_error;
delete invoice.payment_preimage;
delete invoice.payment_route;
delete invoice.pay_req;
delete invoice.decoded;