aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.js
diff options
context:
space:
mode:
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;