From bf1c162f037bd59ee350c454c8e72359d2a1d5fc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 17 Aug 2021 22:38:38 -0700 Subject: don't emit user --- routes/send.js | 3 +-- 1 file changed, 1 insertion(+), 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`); -- cgit v1.2.3