aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-08-17 22:38:38 -0700
committerAdam Soltys <[email protected]>2021-08-17 22:41:10 -0700
commitbf1c162f037bd59ee350c454c8e72359d2a1d5fc (patch)
tree0dc5b0d2e693d171960bd324a7a21692a067ab65
parent23f0145fb23ecb5823a709fab5391828d0d65af6 (diff)
downloadcoinos-server-bf1c162f037bd59ee350c454c8e72359d2a1d5fc.tar.gz
coinos-server-bf1c162f037bd59ee350c454c8e72359d2a1d5fc.zip
don't emit user
-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`);