mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 20:59:26 +00:00
remove console logs
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user