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

@@ -121,6 +121,10 @@ module.exports = function (User) {
upvoteNotifFreq: data.upvoteNotifFreq,
bootswatchSkin: data.bootswatchSkin,
categoryWatchState: data.categoryWatchState,
categoryTopicSort: data.categoryTopicSort,
topicPostSort: data.topicPostSort,
setCategorySort: data.setCategorySort,
setTopicSort: data.setTopicSort,
};
const notificationTypes = await notifications.getAllNotificationTypes();
notificationTypes.forEach(function (notificationType) {