1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-28 06:48:42 +09:00

Fix: update_client_setting (#3086)

This commit is contained in:
MeiMei 2018-11-04 03:33:37 +09:00 committed by syuilo
parent 84db15694d
commit 65bfa3c0d6

View File

@ -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
});
}));