summaryrefslogtreecommitdiff
path: root/src/api/endpoints/i
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-09 02:20:47 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-09 02:20:47 +0900
commit6026ef6d71d2b2d7792b95fd53e9e767657ac337 (patch)
treefe671c15c93644ac4d68d8e72f9d2306a2ef1418 /src/api/endpoints/i
parent[API] Fix bug (diff)
downloadsharkey-6026ef6d71d2b2d7792b95fd53e9e767657ac337.tar.gz
sharkey-6026ef6d71d2b2d7792b95fd53e9e767657ac337.tar.bz2
sharkey-6026ef6d71d2b2d7792b95fd53e9e767657ac337.zip
[API] Fix bug
Diffstat (limited to 'src/api/endpoints/i')
-rw-r--r--src/api/endpoints/i/update.js9
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