refactor
This commit is contained in:
parent
9583937622
commit
3b02341275
|
@ -6,9 +6,9 @@ import { GrpcMethod, RpcException } from '@nestjs/microservices';
|
||||||
import { DatabaseException } from 'src/modules/database/src/exceptions/DatabaseException';
|
import { DatabaseException } from 'src/modules/database/src/exceptions/DatabaseException';
|
||||||
import { CreateAuthCommand } from '../../commands/create-auth.command';
|
import { CreateAuthCommand } from '../../commands/create-auth.command';
|
||||||
import { UpdateAuthCommand } from '../../commands/update-auth.command';
|
import { UpdateAuthCommand } from '../../commands/update-auth.command';
|
||||||
import { CreateAuthRequest } from '../../domain/dto/create-auth.request';
|
import { CreateAuthRequest } from '../../domain/dtos/create-auth.request';
|
||||||
import { UpdateAuthRequest } from '../../domain/dto/update-auth.request';
|
import { UpdateAuthRequest } from '../../domain/dtos/update-auth.request';
|
||||||
import { ValidateAuthRequest } from '../../domain/dto/validate-auth.request';
|
import { ValidateAuthRequest } from '../../domain/dtos/validate-auth.request';
|
||||||
import { Auth } from '../../domain/entities/auth';
|
import { Auth } from '../../domain/entities/auth';
|
||||||
import { ValidateAuthQuery } from '../../queries/validate-auth.query';
|
import { ValidateAuthQuery } from '../../queries/validate-auth.query';
|
||||||
import { AuthPresenter } from './auth.presenter';
|
import { AuthPresenter } from './auth.presenter';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { CreateAuthRequest } from '../domain/dto/create-auth.request';
|
import { CreateAuthRequest } from '../domain/dtos/create-auth.request';
|
||||||
|
|
||||||
export class CreateAuthCommand {
|
export class CreateAuthCommand {
|
||||||
readonly createAuthRequest: CreateAuthRequest;
|
readonly createAuthRequest: CreateAuthRequest;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { UpdateAuthRequest } from '../domain/dto/update-auth.request';
|
import { UpdateAuthRequest } from '../domain/dtos/update-auth.request';
|
||||||
|
|
||||||
export class UpdateAuthCommand {
|
export class UpdateAuthCommand {
|
||||||
readonly updateAuthRequest: UpdateAuthRequest;
|
readonly updateAuthRequest: UpdateAuthRequest;
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { AutomapperModule } from '@automapper/nestjs';
|
||||||
import { Test, TestingModule } from '@nestjs/testing';
|
import { Test, TestingModule } from '@nestjs/testing';
|
||||||
import { AuthRepository } from '../../adapters/secondaries/auth.repository';
|
import { AuthRepository } from '../../adapters/secondaries/auth.repository';
|
||||||
import { CreateAuthCommand } from '../../commands/create-auth.command';
|
import { CreateAuthCommand } from '../../commands/create-auth.command';
|
||||||
import { CreateAuthRequest } from '../../domain/dto/create-auth.request';
|
import { CreateAuthRequest } from '../../domain/dtos/create-auth.request';
|
||||||
import { Auth } from '../../domain/entities/auth';
|
import { Auth } from '../../domain/entities/auth';
|
||||||
import { CreateAuthUseCase } from '../../domain/usecases/create-auth.usecase';
|
import { CreateAuthUseCase } from '../../domain/usecases/create-auth.usecase';
|
||||||
import { AuthProfile } from '../../mappers/auth.profile';
|
import { AuthProfile } from '../../mappers/auth.profile';
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { classes } from '@automapper/classes';
|
||||||
import { AutomapperModule } from '@automapper/nestjs';
|
import { AutomapperModule } from '@automapper/nestjs';
|
||||||
import { Test, TestingModule } from '@nestjs/testing';
|
import { Test, TestingModule } from '@nestjs/testing';
|
||||||
import { UpdateAuthCommand } from '../../commands/update-auth.command';
|
import { UpdateAuthCommand } from '../../commands/update-auth.command';
|
||||||
import { UpdateAuthRequest } from '../../domain/dto/update-auth.request';
|
import { UpdateAuthRequest } from '../../domain/dtos/update-auth.request';
|
||||||
import { Auth } from '../../domain/entities/auth';
|
import { Auth } from '../../domain/entities/auth';
|
||||||
import * as bcrypt from 'bcrypt';
|
import * as bcrypt from 'bcrypt';
|
||||||
import { UpdateAuthUseCase } from '../../domain/usecases/update-auth.usecase';
|
import { UpdateAuthUseCase } from '../../domain/usecases/update-auth.usecase';
|
||||||
|
|
Loading…
Reference in New Issue