mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
load userRole in findUserByEmail()
This commit is contained in:
parent
37b2e659f0
commit
2ca9af9cbf
@ -850,6 +850,7 @@ export async function findUserByEmail(email: string): Promise<DbUser> {
|
||||
})
|
||||
const dbUser = dbUserContact.user
|
||||
dbUser.emailContact = dbUserContact
|
||||
dbUser.userRole = await UserRole.findOne({ userId: dbUser.id })
|
||||
return dbUser
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user