remove comments

This commit is contained in:
einhornimmond 2025-06-25 12:03:20 +02:00
parent 8a68f57569
commit b1c1b35bec

View File

@ -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}`)