feat(tasks): make task copy/mirror pref per-group

This commit is contained in:
SabreCat
2022-08-02 16:09:49 -05:00
parent a418752041
commit 9b9503b141
6 changed files with 51 additions and 12 deletions

View File

@@ -385,7 +385,7 @@ api.getUserTasks = {
url: '/tasks/user',
middlewares: [authWithHeaders({
// Some fields (including _id, preferences) are always loaded (see middlewares/auth)
userFieldsToInclude: ['guilds', 'party', 'tasksOrder'],
userFieldsToInclude: ['tasksOrder'],
})],
async handler (req, res) {
const types = Tasks.tasksTypes.map(type => `${type}s`);