just some cleanups, mostly to trigger another build

This commit is contained in:
Ulf Gebhardt 2021-11-07 08:45:34 +01:00
parent 248622f3be
commit 1865e42f83
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -577,13 +577,11 @@ export class UserResolver {
// const result = await apiGet(CONFIG.LOGIN_API_URL + 'hasElopage?session_id=' + context.sessionId)
const userRepository = getCustomRepository(UserRepository)
const userEntity = await userRepository.findByPubkeyHex(context.pubKey).catch()
if (!userEntity) {
return false
}
const elopageBuyCount = await LoginElopageBuys.count({ payerEmail: userEntity.email })
return elopageBuyCount > 0
}
}