Merge branch 'package-update' into 'main'
updating internal dependencies See merge request v3/service/ad!9
This commit is contained in:
commit
b5307d5231
File diff suppressed because it is too large
Load Diff
|
@ -40,8 +40,8 @@
|
||||||
"@grpc/grpc-js": "^1.8.14",
|
"@grpc/grpc-js": "^1.8.14",
|
||||||
"@grpc/proto-loader": "^0.7.6",
|
"@grpc/proto-loader": "^0.7.6",
|
||||||
"@liaoliaots/nestjs-redis": "^9.0.5",
|
"@liaoliaots/nestjs-redis": "^9.0.5",
|
||||||
"@mobicoop/configuration-module": "^1.1.0",
|
"@mobicoop/configuration-module": "^1.2.0",
|
||||||
"@mobicoop/message-broker-module": "^1.0.5",
|
"@mobicoop/message-broker-module": "^1.2.0",
|
||||||
"@nestjs/common": "^9.0.0",
|
"@nestjs/common": "^9.0.0",
|
||||||
"@nestjs/config": "^2.3.1",
|
"@nestjs/config": "^2.3.1",
|
||||||
"@nestjs/core": "^9.0.0",
|
"@nestjs/core": "^9.0.0",
|
||||||
|
|
|
@ -17,49 +17,40 @@ import {
|
||||||
imports: [
|
imports: [
|
||||||
ConfigModule.forRoot({ isGlobal: true }),
|
ConfigModule.forRoot({ isGlobal: true }),
|
||||||
AutomapperModule.forRoot({ strategyInitializer: classes() }),
|
AutomapperModule.forRoot({ strategyInitializer: classes() }),
|
||||||
MessageBrokerModule.forRootAsync(
|
MessageBrokerModule.forRootAsync({
|
||||||
{
|
imports: [ConfigModule],
|
||||||
imports: [ConfigModule],
|
inject: [ConfigService],
|
||||||
inject: [ConfigService],
|
useFactory: async (
|
||||||
useFactory: async (
|
configService: ConfigService,
|
||||||
configService: ConfigService,
|
): Promise<MessageBrokerModuleOptions> => ({
|
||||||
): Promise<MessageBrokerModuleOptions> => ({
|
uri: configService.get<string>('MESSAGE_BROKER_URI'),
|
||||||
|
exchange: configService.get<string>('MESSAGE_BROKER_EXCHANGE'),
|
||||||
|
name: 'ad',
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
ConfigurationModule.forRootAsync({
|
||||||
|
imports: [ConfigModule],
|
||||||
|
inject: [ConfigService],
|
||||||
|
useFactory: async (
|
||||||
|
configService: ConfigService,
|
||||||
|
): Promise<ConfigurationModuleOptions> => ({
|
||||||
|
domain: configService.get<string>('SERVICE_CONFIGURATION_DOMAIN'),
|
||||||
|
messageBroker: {
|
||||||
uri: configService.get<string>('MESSAGE_BROKER_URI'),
|
uri: configService.get<string>('MESSAGE_BROKER_URI'),
|
||||||
exchange: configService.get<string>('MESSAGE_BROKER_EXCHANGE'),
|
exchange: configService.get<string>('MESSAGE_BROKER_EXCHANGE'),
|
||||||
}),
|
},
|
||||||
},
|
redis: {
|
||||||
false,
|
host: configService.get<string>('REDIS_HOST'),
|
||||||
),
|
password: configService.get<string>('REDIS_PASSWORD'),
|
||||||
ConfigurationModule.forRootAsync(
|
port: configService.get<number>('REDIS_PORT'),
|
||||||
{
|
},
|
||||||
imports: [ConfigModule],
|
|
||||||
inject: [ConfigService],
|
propagateConfigurationRoutingKey: 'configuration.propagate',
|
||||||
useFactory: async (
|
setConfigurationBrokerQueue: 'ad-configuration-create-update',
|
||||||
configService: ConfigService,
|
deleteConfigurationQueue: 'ad-configuration-delete',
|
||||||
): Promise<ConfigurationModuleOptions> => ({
|
propagateConfigurationQueue: 'ad-configuration-propagate',
|
||||||
domain: configService.get<string>('SERVICE_CONFIGURATION_DOMAIN'),
|
}),
|
||||||
messageBroker: {
|
}),
|
||||||
uri: configService.get<string>('MESSAGE_BROKER_URI'),
|
|
||||||
exchange: configService.get<string>('MESSAGE_BROKER_EXCHANGE'),
|
|
||||||
},
|
|
||||||
redis: {
|
|
||||||
host: configService.get<string>('REDIS_HOST'),
|
|
||||||
password: configService.get<string>('REDIS_PASSWORD'),
|
|
||||||
port: configService.get<number>('REDIS_PORT'),
|
|
||||||
},
|
|
||||||
setConfigurationBrokerRoutingKeys: [
|
|
||||||
'configuration.create',
|
|
||||||
'configuration.update',
|
|
||||||
],
|
|
||||||
deleteConfigurationRoutingKey: 'configuration.delete',
|
|
||||||
propagateConfigurationRoutingKey: 'configuration.propagate',
|
|
||||||
setConfigurationBrokerQueue: 'ad-configuration-create-update',
|
|
||||||
deleteConfigurationQueue: 'ad-configuration-delete',
|
|
||||||
propagateConfigurationQueue: 'ad-configuration-propagate',
|
|
||||||
}),
|
|
||||||
},
|
|
||||||
true,
|
|
||||||
),
|
|
||||||
HealthModule,
|
HealthModule,
|
||||||
AdModule,
|
AdModule,
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue