fixes #5655 Afinar login #1516

Merged
alexandre merged 4 commits from 5655-afinar-login into dev 2023-05-22 10:36:06 +00:00
1 changed files with 1 additions and 7 deletions

View File

@ -23,13 +23,7 @@ module.exports = Self => {
let models = Self.app.models;
let user = await Self.findById(userId, {
fields: ['id', 'name', 'nickname', 'email', 'lang'],
include: {
relation: 'userConfig',
scope: {
fields: ['darkMode']
}
}
fields: ['id', 'name', 'nickname', 'email', 'lang']
});
let roles = await models.RoleMapping.find({