aboutsummaryrefslogtreecommitdiffstats
path: root/routes/bitcoin
diff options
context:
space:
mode:
Diffstat (limited to 'routes/bitcoin')
-rw-r--r--routes/bitcoin/receive.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/routes/bitcoin/receive.js b/routes/bitcoin/receive.js
index d0ac0ce5..1ee9f323 100644
--- a/routes/bitcoin/receive.js
+++ b/routes/bitcoin/receive.js
@@ -164,8 +164,7 @@ setInterval(async () => {
await p.account.save({ transaction });
await p.save({ transaction });
- let p = p.get({ plain: true });
- p.account = p.account.get({ plain: true });
+ p = p.get({ plain: true });
emit(user.username, "account", p.account);
emit(user.username, "payment", p);