aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lightning/receive.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/lightning/receive.js')
-rw-r--r--routes/lightning/receive.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js
index 55193d2d..32c54de6 100644
--- a/routes/lightning/receive.js
+++ b/routes/lightning/receive.js
@@ -69,6 +69,8 @@ const handlePayment = async msg => {
payment = payment.get({ plain: true });
payment.account = account.get({ plain: true });
+ await callWebhook(invoice, payment);
+
emit(user.username, "payment", payment);
emit(user.username, "account", payment.account);
notify(user, `Received ${total} SAT`);