mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
remove comments
This commit is contained in:
parent
8a68f57569
commit
b1c1b35bec
@ -184,7 +184,6 @@ export class UserResolver {
|
||||
await delay(650 + Math.floor(Math.random() * 101) - 50)
|
||||
throw e
|
||||
}
|
||||
// TODO: discuss need we logging all this cases?
|
||||
if (dbUser.deletedAt) {
|
||||
logger.warn('login failed, user was deleted')
|
||||
throw new Error('This user was permanently deleted. Contact support for questions')
|
||||
@ -1173,7 +1172,6 @@ export async function findUserByEmail(email: string): Promise<DbUser> {
|
||||
} catch (e) {
|
||||
const logger = createLogger()
|
||||
if (e instanceof EntityNotFoundError || (e as Error).name === 'EntityNotFoundError') {
|
||||
// TODO: discuss if it is ok to print email in log for this case
|
||||
logger.warn(`findUserByEmail failed, user with email=${email} not found`)
|
||||
} else {
|
||||
logger.error(`findUserByEmail failed, unknown error: ${e}`)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user