impl modulo orde node 22
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
} from '@nestjs/common';
|
||||
import { CommandBus } from '@nestjs/cqrs';
|
||||
import { CqrsModule } from '@nestjs/cqrs';
|
||||
import { AuthenticateUserCommand } from './authenticate-user.command';
|
||||
import { AuthenticateUserCommand } from './commands/authenticate-user.command';
|
||||
import { LoginResponseDto } from './dto/LoginResponseDto';
|
||||
import { LoginDto } from './dto/login.dto';
|
||||
import { ResultModel } from 'src/core/models/result.model';
|
||||
|
||||
@@ -8,7 +8,7 @@ import { UsersModule } from '../users/users.module';
|
||||
import { AuthController } from './auth.controller';
|
||||
import { CqrsModule } from '@nestjs/cqrs';
|
||||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
||||
import { AuthenticateUserHandler } from './authenticate-user.service';
|
||||
import { AuthenticateUserHandler } from './commands/authenticate-user.service';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -29,7 +29,7 @@ import { AuthenticateUserHandler } from './authenticate-user.service';
|
||||
UsersModule,
|
||||
],
|
||||
controllers: [AuthController],
|
||||
providers: [AuthService, JwtStrategy, AuthenticateUserHandler],
|
||||
providers: [AuthService, JwtStrategy],
|
||||
exports: [AuthService],
|
||||
})
|
||||
export class AuthModule {}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CommandHandler, ICommandHandler } from '@nestjs/cqrs';
|
||||
import { AuthenticateUserCommand } from './authenticate-user.command';
|
||||
import { UserRepository } from '../users/UserRepository';
|
||||
import { Result } from '../models/result';
|
||||
import { UserRepository } from '../../users/UserRepository';
|
||||
import { Result } from '../../models/result';
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { UserModel } from 'src/core/models/user.model';
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm'; // <-- importe aqui
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { UsersService } from './users.service';
|
||||
import { UserRepository } from './UserRepository';
|
||||
|
||||
import { AuthenticateUserHandler } from '../auth/authenticate-user.service';
|
||||
import { AuthenticateUserHandler } from '../auth/commands/authenticate-user.service';
|
||||
import { ResetPasswordService } from './reset-password.service';
|
||||
import { ChangePasswordService } from './change-password.service';
|
||||
import { EmailService } from './email.service';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { AuthenticateUserHandler } from '../auth/authenticate-user.service';
|
||||
import { AuthenticateUserHandler } from '../auth/commands/authenticate-user.service';
|
||||
import { ResetPasswordService } from './reset-password.service';
|
||||
import { ChangePasswordService } from './change-password.service';
|
||||
import { AuthenticateUserCommand } from '../auth/authenticate-user.command';
|
||||
import { AuthenticateUserCommand } from '../auth/commands/authenticate-user.command';
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user