diff options
Diffstat (limited to 'routes/lightning/receive.js')
| -rw-r--r-- | routes/lightning/receive.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 292f19e2..34ac1fc3 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -13,7 +13,7 @@ const handlePayment = async msg => { if (!invoice) return l.warn("received lightning with no invoice", msg.payment_request); - const { text: hash, currency, rate, tip, user_id } = invoice; + const { text: hash, currency, memo, rate, tip, user_id } = invoice; const amount = parseInt(msg.amt_paid_sat) - tip; const account = await db.Account.findOne({ @@ -37,6 +37,7 @@ const handlePayment = async msg => { account_id: account.id, user_id, hash, + memo, amount, currency, preimage, |
