mirror of
https://gitlab.com/mobicoop/v3/service/auth.git
synced 2026-01-10 06:12:41 +00:00
remove automapper
This commit is contained in:
@@ -2,7 +2,11 @@ import { Module } from '@nestjs/common';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
import { AuthenticationModule } from '@modules/authentication/authentication.module';
|
||||
import { EventEmitterModule } from '@nestjs/event-emitter';
|
||||
import { HealthModule, HealthModuleOptions } from '@mobicoop/health-module';
|
||||
import {
|
||||
HealthModule,
|
||||
HealthModuleOptions,
|
||||
HealthRepositoryPort,
|
||||
} from '@mobicoop/health-module';
|
||||
import { AuthorizationModule } from '@modules/authorization/authorization.module';
|
||||
import {
|
||||
AUTHENTICATION_REPOSITORY,
|
||||
@@ -10,7 +14,6 @@ import {
|
||||
} from '@modules/authentication/authentication.di-tokens';
|
||||
import { MESSAGE_PUBLISHER } from './modules/messager/messager.di-tokens';
|
||||
import { MessagePublisherPort } from '@mobicoop/ddd-library';
|
||||
import { ICheckRepository } from '@mobicoop/health-module/dist/core/domain/types/health.types';
|
||||
import { MessagerModule } from './modules/messager/messager.module';
|
||||
|
||||
@Module({
|
||||
@@ -25,13 +28,22 @@ import { MessagerModule } from './modules/messager/messager.module';
|
||||
MESSAGE_PUBLISHER,
|
||||
],
|
||||
useFactory: async (
|
||||
authenticationRepository: ICheckRepository,
|
||||
usernameRepository: ICheckRepository,
|
||||
authenticationRepository: HealthRepositoryPort,
|
||||
usernameRepository: HealthRepositoryPort,
|
||||
messagePublisher: MessagePublisherPort,
|
||||
): Promise<HealthModuleOptions> => ({
|
||||
serviceName: 'auth',
|
||||
criticalLoggingKey: 'logging.auth.health.crit',
|
||||
checkRepositories: [authenticationRepository, usernameRepository],
|
||||
checkRepositories: [
|
||||
{
|
||||
name: 'AuthenticationRepository',
|
||||
repository: authenticationRepository,
|
||||
},
|
||||
{
|
||||
name: 'UsernameRepository',
|
||||
repository: usernameRepository,
|
||||
},
|
||||
],
|
||||
messagePublisher,
|
||||
}),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user