mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
Fix Missing Memo in LND Invoices Table
This commit is contained in:
parent
e8d5685948
commit
d8e6bb1b68
2 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ const extractKeysendMessage = (invoice) => {
|
|||
}
|
||||
}
|
||||
}
|
||||
return '';
|
||||
return invoice.memo || '';
|
||||
};
|
||||
export const invoiceLookup = (req, res, next) => {
|
||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Invoice', msg: 'Getting Invoice Information..' });
|
||||
|
|
@ -62,7 +62,7 @@ export const listInvoices = (req, res, next) => {
|
|||
invoice.r_preimage = invoice.r_preimage ? Buffer.from(invoice.r_preimage, 'base64').toString('hex') : '';
|
||||
invoice.r_hash = invoice.r_hash ? Buffer.from(invoice.r_hash, 'base64').toString('hex') : '';
|
||||
invoice.description_hash = invoice.description_hash ? Buffer.from(invoice.description_hash, 'base64').toString('hex') : null;
|
||||
invoice.memo = extractKeysendMessage(invoice) || '';
|
||||
invoice.memo = extractKeysendMessage(invoice);
|
||||
});
|
||||
}
|
||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Invoice', msg: 'Sorted Invoices List Received', data: body });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue