refactor: remove /users/{uid}/settings/{setting} route

@baris Also, I am now allowing the following properties to be saved in User.saveSettings:
- categoryTopicSort
- topicPostSort
- setCategorySort
- setTopicSort
This commit is contained in:
Julian Lam
2020-10-28 17:13:58 -04:00
parent e0b6781776
commit aa8faf58a0
7 changed files with 7 additions and 55 deletions

View File

@@ -106,10 +106,6 @@ usersAPI.updateSettings = async function (caller, data) {
return await user.saveSettings(data.uid, payload);
};
usersAPI.updateSetting = async function (caller, data) {
await user.setSetting(data.uid, data.setting, data.value);
};
usersAPI.changePassword = async function (caller, data) {
await user.changePassword(caller.uid, Object.assign(data, { ip: caller.ip }));
await events.log({