aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routes/send.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/routes/send.js b/routes/send.js
index 1a9783e0..e8fdb79c 100644
--- a/routes/send.js
+++ b/routes/send.js
@@ -68,7 +68,6 @@ module.exports = ah(async (req, res, next) => {
emit(user.username, "payment", payment);
emit(user.username, "account", account);
- emit(user.username, "user", user);
if (username) {
let recipient = await db.User.findOne(
@@ -165,8 +164,8 @@ module.exports = ah(async (req, res, next) => {
p2 = p2.get({ plain: true });
p2.account = a2.get({ plain: true });
- emit(recipient.username, "account", p2.account);
emit(recipient.username, "payment", p2);
+ emit(recipient.username, "account", p2.account);
l.info("received internal", recipient.username, amount);
notify(recipient, `Received ${amount} ${a2.ticker} sats`);