From fb91aa048617f0894e01c1e890ec957a3170539f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 5 Oct 2022 12:15:48 -0700 Subject: prettier --- routes/lightning/receive.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'routes/lightning') 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`); -- cgit v1.2.3