fixes #5655 Afinar login #1516
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue