diff options
Diffstat (limited to 'src/api/endpoints/i')
| -rw-r--r-- | src/api/endpoints/i/update.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/api/endpoints/i/update.js b/src/api/endpoints/i/update.js index 208ece4fa8..13b5c523e0 100644 --- a/src/api/endpoints/i/update.js +++ b/src/api/endpoints/i/update.js @@ -79,7 +79,14 @@ module.exports = async (params, user, _, isSecure) => } await User.update(user._id, { - $set: user + $set: { + name: user.name, + location: user.location, + bio: user.bio, + birthday: user.birthday, + avatar_id: user.avatar_id, + banner_id: user.banner_id + } }); // Serialize |