Store and return invoice memo

This commit is contained in:
2022-03-01 21:54:52 -06:00
parent 947c7f7056
commit 9b81cc6287
2 changed files with 2 additions and 1 deletions

View File

@@ -363,7 +363,7 @@ export class User {
}
if (invoice.decoded) {
invoice.timestamp = invoice.decoded.timestamp;
invoice.memo = invoice.decoded.description;
invoice.memo = invoice.memo || invoice.decoded.description;
}
if (invoice.payment_preimage) {
invoice.payment_preimage = Buffer.from(invoice.payment_preimage, 'hex').toString('hex');