remove console logs

This commit is contained in:
andres
2023-06-15 23:17:07 +02:00
parent 4e6e18b708
commit 121fceb97a
5 changed files with 7 additions and 8 deletions

View File

@@ -18,10 +18,11 @@ export class ResendVerificationEmailHandler
async execute(command: ResendVerificationEmailCommand) {
const user = await this.usersRepository.findUserById(command.userId)
console.log(user)
if (!user) {
throw new NotFoundException('User not found')
}
if (user.isEmailVerified) {
throw new BadRequestException('Email has already been verified')
}