feat: add uid to filter:user.saveSettings

isekai-main
Barış Soner Uşaklı 3 years ago
parent 52eace4b38
commit 7f48edc02a

@ -148,7 +148,7 @@ module.exports = function (User) {
settings[notificationType] = data[notificationType];
}
});
const result = await plugins.hooks.fire('filter:user.saveSettings', { settings: settings, data: data });
const result = await plugins.hooks.fire('filter:user.saveSettings', { uid: uid, settings: settings, data: data });
await db.setObject(`user:${uid}:settings`, result.settings);
await User.updateDigestSetting(uid, data.dailyDigestFreq);
return await User.getSettings(uid);

Loading…
Cancel
Save