mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 20:59:26 +00:00
add auth docs, add eslint import/order
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { CommandHandler, ICommandHandler } from '@nestjs/cqrs'
|
||||
import { BadRequestException, NotFoundException } from '@nestjs/common'
|
||||
import { CommandHandler, ICommandHandler } from '@nestjs/cqrs'
|
||||
|
||||
import { UsersRepository } from '../../users/infrastructure/users.repository'
|
||||
import { UsersService } from '../../users/services/users.service'
|
||||
|
||||
@@ -28,6 +29,7 @@ export class ResendVerificationEmailHandler
|
||||
}
|
||||
|
||||
const updatedUser = await this.usersRepository.updateVerificationToken(user.id)
|
||||
|
||||
await this.usersService.sendConfirmationEmail({
|
||||
email: updatedUser.user.email,
|
||||
name: updatedUser.user.name,
|
||||
|
||||
Reference in New Issue
Block a user