diff --git a/src/modules/auth/auth.module.ts b/src/modules/auth/auth.module.ts index 38a5720..38d8675 100644 --- a/src/modules/auth/auth.module.ts +++ b/src/modules/auth/auth.module.ts @@ -15,6 +15,7 @@ import { DeleteAuthUseCase } from './domain/usecases/delete-auth.usecase'; import { RabbitMQModule } from '@golevelup/nestjs-rabbitmq'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { AuthMessagerController } from './adapters/primaries/auth-messager.controller'; +import { LoggingMessager } from './adapters/secondaries/logging.messager'; @Module({ imports: [ @@ -44,6 +45,7 @@ import { AuthMessagerController } from './adapters/primaries/auth-messager.contr AuthProfile, UsernameProfile, AuthRepository, + LoggingMessager, ValidateAuthUseCase, CreateAuthUseCase, AddUsernameUseCase, diff --git a/src/modules/auth/domain/usecases/create-auth.usecase.ts b/src/modules/auth/domain/usecases/create-auth.usecase.ts index c4e0a07..a477ee4 100644 --- a/src/modules/auth/domain/usecases/create-auth.usecase.ts +++ b/src/modules/auth/domain/usecases/create-auth.usecase.ts @@ -32,7 +32,7 @@ export class CreateAuthUseCase { return auth; } catch (error) { this._loggingMessager.publish( - 'auth.create.critical', + 'auth.create.crit', JSON.stringify({ command, error, diff --git a/src/modules/auth/domain/usecases/delete-auth.usecase.ts b/src/modules/auth/domain/usecases/delete-auth.usecase.ts index 07905ce..636f294 100644 --- a/src/modules/auth/domain/usecases/delete-auth.usecase.ts +++ b/src/modules/auth/domain/usecases/delete-auth.usecase.ts @@ -22,7 +22,7 @@ export class DeleteAuthUseCase { }); } catch (error) { this._loggingMessager.publish( - 'auth.delete.critical', + 'auth.delete.crit', JSON.stringify({ command, error,