リファクタリングなど

This commit is contained in:
syuilo 2018-04-29 17:17:15 +09:00
parent 1625b37b44
commit 372bfaceda
64 changed files with 521 additions and 570 deletions

View file

@ -24,16 +24,11 @@ module.exports = async (params, user) => new Promise(async (res, rej) => {
$set: x
});
// Serialize
user.clientSettings[name] = value;
const iObj = await pack(user, user, {
detail: true,
includeSecrets: true
res();
// Publish event
event(user._id, 'clientSettingUpdated', {
key: name,
value
});
// Send response
res(iObj);
// Publish i updated event
event(user._id, 'i_updated', iObj);
});