diff options
| author | Adam Soltys <[email protected]> | 2020-07-27 13:03:41 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-07-27 13:03:41 -0400 |
| commit | 768bcc0107c98d145d4a663e8562a13666570941 (patch) | |
| tree | 621a5a2708b5a0ec34f4c46c9e144c237aec6d83 /routes/bitcoin | |
| parent | 685a5cb9c421ee03b7a6e79ee5d98998987deddb (diff) | |
| download | coinos-server-768bcc0107c98d145d4a663e8562a13666570941.tar.gz coinos-server-768bcc0107c98d145d4a663e8562a13666570941.zip | |
fix payment emit bug
Diffstat (limited to 'routes/bitcoin')
| -rw-r--r-- | routes/bitcoin/receive.js | 3 |
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); |
