remove automapper
This commit is contained in:
parent
603d3dca2b
commit
8996f52b52
File diff suppressed because it is too large
Load Diff
|
@ -30,14 +30,11 @@
|
|||
"migrate:deploy": "npx prisma migrate deploy"
|
||||
},
|
||||
"dependencies": {
|
||||
"@automapper/classes": "^8.7.7",
|
||||
"@automapper/core": "^8.7.7",
|
||||
"@automapper/nestjs": "^8.7.7",
|
||||
"@golevelup/nestjs-rabbitmq": "^3.4.0",
|
||||
"@grpc/grpc-js": "^1.8.0",
|
||||
"@grpc/proto-loader": "^0.7.4",
|
||||
"@mobicoop/ddd-library": "^0.3.0",
|
||||
"@mobicoop/health-module": "^1.1.0",
|
||||
"@mobicoop/health-module": "^2.0.0",
|
||||
"@mobicoop/message-broker-module": "^1.2.0",
|
||||
"@nestjs/axios": "^1.0.1",
|
||||
"@nestjs/common": "^9.0.0",
|
||||
|
|
|
@ -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,
|
||||
}),
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue