diff options
| author | Adam Soltys <[email protected]> | 2020-09-28 02:35:33 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-09-28 02:35:33 -0700 |
| commit | 764a3996863775925305d77540332ba4f0c62926 (patch) | |
| tree | 2b8722ad53d6293a6d3499dd82cb6bde4f772ff5 | |
| parent | 23f0a3a583e72513e25955b9117913fa7a52c9f8 (diff) | |
| download | coinos-server-764a3996863775925305d77540332ba4f0c62926.tar.gz coinos-server-764a3996863775925305d77540332ba4f0c62926.zip | |
add to balance
| -rw-r--r-- | routes/swaps.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/swaps.js b/routes/swaps.js index 043dedc0..a9fca262 100644 --- a/routes/swaps.js +++ b/routes/swaps.js @@ -466,7 +466,7 @@ app.post( } }); - acc.balance = queue[keys[i]]; + acc.balance += queue[keys[i]]; await acc.save(); emit(acc.user.username, "account", acc.get({ plain: true })); } |
