mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Update backend/src/graphql/resolver/UserResolver.ts
Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
parent
eb06b9a528
commit
c9f167d07b
@ -473,7 +473,8 @@ export class UserResolver {
|
|||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
const userRepository = getCustomRepository(UserRepository)
|
const userRepository = getCustomRepository(UserRepository)
|
||||||
const userEntity = await userRepository.findByPubkeyHex(context.pubKey)
|
const userEntity = await userRepository.findByPubkeyHex(context.pubKey)
|
||||||
const loginUser = await LoginUser.findOneOrFail({ email: userEntity.email })
|
const loginUserRepository = getCustomRepository(LoginUserRepository)
|
||||||
|
const loginUser = await loginUserRepository.findOneOrFail({ email: userEntity.email })
|
||||||
|
|
||||||
if (username) {
|
if (username) {
|
||||||
throw new Error('change username currently not supported!')
|
throw new Error('change username currently not supported!')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user