From 74b7d2a0d614f170ba5aea3a1a172a7a68356d80 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 13 Jun 2020 21:39:22 -0700 Subject: push notifications --- routes/send.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes/send.js') diff --git a/routes/send.js b/routes/send.js index 837a9e45..8b4137d8 100644 --- a/routes/send.js +++ b/routes/send.js @@ -122,7 +122,8 @@ module.exports = async (req, res) => { emit(user.username, "account", account); emit(user.username, "payment", payment); - l.info("received internal", user.username, payment.amount); + l.info("received internal", user.username, amount); + notify(user, `Received ${amount} SAT`); }); } catch (e) { l.error( -- cgit v1.2.3