summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/i/update_client_setting.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-08 03:58:11 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-08 03:58:11 +0900
commita02ee3a08bac55c9f0b29cb6bc0a15726b7cc3c8 (patch)
treebf3c3dacd69737bf79eea0311fed1ddc504b15a5 /src/server/api/endpoints/i/update_client_setting.ts
parentPost --> Note (diff)
downloadsharkey-a02ee3a08bac55c9f0b29cb6bc0a15726b7cc3c8.tar.gz
sharkey-a02ee3a08bac55c9f0b29cb6bc0a15726b7cc3c8.tar.bz2
sharkey-a02ee3a08bac55c9f0b29cb6bc0a15726b7cc3c8.zip
Some bug fixes
Diffstat (limited to 'src/server/api/endpoints/i/update_client_setting.ts')
-rw-r--r--src/server/api/endpoints/i/update_client_setting.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/i/update_client_setting.ts b/src/server/api/endpoints/i/update_client_setting.ts
index 10741aceba..b0d5db5ec2 100644
--- a/src/server/api/endpoints/i/update_client_setting.ts
+++ b/src/server/api/endpoints/i/update_client_setting.ts
@@ -22,14 +22,14 @@ module.exports = async (params, user) => new Promise(async (res, rej) => {
if (valueErr) return rej('invalid value param');
const x = {};
- x[`account.clientSettings.${name}`] = value;
+ x[`clientSettings.${name}`] = value;
await User.update(user._id, {
$set: x
});
// Serialize
- user.account.clientSettings[name] = value;
+ user.clientSettings[name] = value;
const iObj = await pack(user, user, {
detail: true,
includeSecrets: true