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:38:38 -0700
commit01b96b95507d6ffd6c551c834bea5478b190d308 (patch)
treee3a4148713953219fe54c484ead4895887a18da3
parent8a0190d2fb7abbeb3ccb94ea2184cd3ff16d8c9a (diff)
downloadcoinos-server-01b96b95507d6ffd6c551c834bea5478b190d308.tar.gz
coinos-server-01b96b95507d6ffd6c551c834bea5478b190d308.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`);