diff options
Diffstat (limited to 'routes/lightning')
| -rw-r--r-- | routes/lightning/receive.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 898152fe..2ca6f960 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -82,7 +82,7 @@ const handlePayment = async msg => { { transaction } ); await account.reload({ transaction }); - await invoice.save({ transaction }); + await invoice.reload({ transaction }); await payment.save({ transaction }); store.payments.push(msg.request); @@ -92,6 +92,8 @@ const handlePayment = async msg => { callWebhook(invoice, payment); + console.log("INVOICE", payment.invoice.received); + emit(user.username, "payment", payment); emit(user.username, "account", payment.account); notify(user, `Received ${total} SAT`); |
