diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-30 21:31:51 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-30 21:31:51 +0900 |
| commit | 616408f36e10a6e6409208ed680c30ed0e2b8b34 (patch) | |
| tree | 096516c42bee558bf759bb660169947c99063da8 /src/server/api | |
| parent | 返信先プレビューなどではURLプレビューを表示しないよ... (diff) | |
| download | sharkey-616408f36e10a6e6409208ed680c30ed0e2b8b34.tar.gz sharkey-616408f36e10a6e6409208ed680c30ed0e2b8b34.tar.bz2 sharkey-616408f36e10a6e6409208ed680c30ed0e2b8b34.zip | |
oops
Diffstat (limited to 'src/server/api')
| -rw-r--r-- | src/server/api/endpoints/i/update_mobile_home.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/api/endpoints/i/update_mobile_home.ts b/src/server/api/endpoints/i/update_mobile_home.ts index b06ca108aa..6f28cebf9c 100644 --- a/src/server/api/endpoints/i/update_mobile_home.ts +++ b/src/server/api/endpoints/i/update_mobile_home.ts @@ -25,7 +25,7 @@ module.exports = async (params, user) => new Promise(async (res, rej) => { if (home) { await User.update(user._id, { $set: { - 'account.clientSettings.mobile_home': home + 'account.clientSettings.mobileHome': home } }); @@ -37,7 +37,7 @@ module.exports = async (params, user) => new Promise(async (res, rej) => { } else { if (id == null && data == null) return rej('you need to set id and data params if home param unset'); - const _home = user.account.clientSettings.mobile_home || []; + const _home = user.account.clientSettings.mobileHome || []; const widget = _home.find(w => w.id == id); if (widget == null) return rej('widget not found'); @@ -46,7 +46,7 @@ module.exports = async (params, user) => new Promise(async (res, rej) => { await User.update(user._id, { $set: { - 'account.clientSettings.mobile_home': _home + 'account.clientSettings.mobileHome': _home } }); |