aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-09-17 00:55:40 -0700
committerAdam Soltys <[email protected]>2020-09-17 10:02:48 -0700
commit0904ac984bb2aff0a862a0157f8f2feead1b1c83 (patch)
tree8f57cd9377c4d95df716825f41648a04558a896c /routes/users.js
parent06e5bc372b07666e5d90efc8042b42ef54731478 (diff)
downloadcoinos-server-0904ac984bb2aff0a862a0157f8f2feead1b1c83.tar.gz
coinos-server-0904ac984bb2aff0a862a0157f8f2feead1b1c83.zip
use current account for internal payments
Diffstat (limited to 'routes/users.js')
-rw-r--r--routes/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js
index 5de71a54..e92bc874 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -455,7 +455,7 @@ app.post(
try {
const account = await db.Account.findOne({
- where: { id }
+ where: { id, user_id: user.id }
});
user.account_id = account.id;