summaryrefslogtreecommitdiff
path: root/src/api/endpoints/i
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/i')
-rw-r--r--src/api/endpoints/i/update.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/endpoints/i/update.js b/src/api/endpoints/i/update.js
index 652006e957..208ece4fa8 100644
--- a/src/api/endpoints/i/update.js
+++ b/src/api/endpoints/i/update.js
@@ -78,7 +78,9 @@ module.exports = async (params, user, _, isSecure) =>
user.banner_id = new mongo.ObjectID(banner);
}
- await User.update(user._id, user);
+ await User.update(user._id, {
+ $set: user
+ });
// Serialize
const iObj = await serialize(user, user, {