diff options
| -rw-r--r-- | routes/lightning/receive.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 980d9e01..286541d2 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -12,7 +12,7 @@ const handlePayment = async msg => { if (!invoice) return; const { text: hash, currency, rate, tip, user_id } = invoice; - const amount = parseInt(msg.value) - tip; + const amount = parseInt(msg.amt_paid_sat) - tip; const account = await db.Account.findOne({ where: { |
