From 6026ef6d71d2b2d7792b95fd53e9e767657ac337 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 9 Feb 2017 02:20:47 +0900 Subject: [API] Fix bug --- src/api/endpoints/i/update.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/api/endpoints/i') 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 -- cgit v1.2.3-freya