diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2018-11-04 03:33:37 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-04 03:33:37 +0900 |
| commit | 65bfa3c0d69fd87a6fcbcc21760c9da821844d7e (patch) | |
| tree | 58cb201b2630d5971cf8e9e6f67650a446632c8d /src/server | |
| parent | Do not send needless emojis in note (diff) | |
| download | sharkey-65bfa3c0d69fd87a6fcbcc21760c9da821844d7e.tar.gz sharkey-65bfa3c0d69fd87a6fcbcc21760c9da821844d7e.tar.bz2 sharkey-65bfa3c0d69fd87a6fcbcc21760c9da821844d7e.zip | |
Fix: update_client_setting (#3086)
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/api/endpoints/i/update_client_setting.ts | 4 |
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 03eb23a5a2..66435ec9b2 100644 --- a/src/server/api/endpoints/i/update_client_setting.ts +++ b/src/server/api/endpoints/i/update_client_setting.ts @@ -21,7 +21,7 @@ export const meta = { export default define(meta, (ps, user) => new Promise(async (res, rej) => { const x: any = {}; - x[`clientSettings.${name}`] = ps.value; + x[`clientSettings.${ps.name}`] = ps.value; await User.update(user._id, { $set: x @@ -31,7 +31,7 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { // Publish event publishMainStream(user._id, 'clientSettingUpdated', { - key: name, + key: ps.name, value: ps.value }); })); |