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
Showing only changes of commit 7bcb00c127 - Show all commits

View File

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