mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 05:52:40 +00:00
update packages
This commit is contained in:
@@ -14,6 +14,14 @@ import { MESSAGE_PUBLISHER } from '@modules/messager/messager.di-tokens';
|
||||
import { HealthModuleOptions } from '@mobicoop/health-module/dist/core/domain/types/health.types';
|
||||
import { MessagePublisherPort } from '@mobicoop/ddd-library';
|
||||
import { GeographyModule } from '@modules/geography/geography.module';
|
||||
import {
|
||||
HEALTH_AD_REPOSITORY,
|
||||
HEALTH_CRITICAL_LOGGING_KEY,
|
||||
SERVICE_CONFIGURATION_DELETE_QUEUE,
|
||||
SERVICE_CONFIGURATION_PROPAGATE_QUEUE,
|
||||
SERVICE_CONFIGURATION_SET_QUEUE,
|
||||
SERVICE_NAME,
|
||||
} from './app.constants';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
@@ -31,18 +39,23 @@ import { GeographyModule } from '@modules/geography/geography.module';
|
||||
) as string,
|
||||
messageBroker: {
|
||||
uri: configService.get<string>('MESSAGE_BROKER_URI') as string,
|
||||
exchange: configService.get<string>(
|
||||
'MESSAGE_BROKER_EXCHANGE',
|
||||
) as string,
|
||||
exchange: {
|
||||
name: configService.get<string>(
|
||||
'MESSAGE_BROKER_EXCHANGE',
|
||||
) as string,
|
||||
durable: configService.get<boolean>(
|
||||
'MESSAGE_BROKER_EXCHANGE_DURABILITY',
|
||||
) as boolean,
|
||||
},
|
||||
},
|
||||
redis: {
|
||||
host: configService.get<string>('REDIS_HOST') as string,
|
||||
password: configService.get<string>('REDIS_PASSWORD'),
|
||||
port: configService.get<number>('REDIS_PORT') as number,
|
||||
},
|
||||
setConfigurationBrokerQueue: 'matcher-configuration-create-update',
|
||||
deleteConfigurationQueue: 'matcher-configuration-delete',
|
||||
propagateConfigurationQueue: 'matcher-configuration-propagate',
|
||||
setConfigurationQueue: SERVICE_CONFIGURATION_SET_QUEUE,
|
||||
deleteConfigurationQueue: SERVICE_CONFIGURATION_DELETE_QUEUE,
|
||||
propagateConfigurationQueue: SERVICE_CONFIGURATION_PROPAGATE_QUEUE,
|
||||
}),
|
||||
}),
|
||||
HealthModule.forRootAsync({
|
||||
@@ -52,11 +65,11 @@ import { GeographyModule } from '@modules/geography/geography.module';
|
||||
adRepository: HealthRepositoryPort,
|
||||
messagePublisher: MessagePublisherPort,
|
||||
): Promise<HealthModuleOptions> => ({
|
||||
serviceName: 'matcher',
|
||||
criticalLoggingKey: 'logging.matcher.health.crit',
|
||||
serviceName: SERVICE_NAME,
|
||||
criticalLoggingKey: HEALTH_CRITICAL_LOGGING_KEY,
|
||||
checkRepositories: [
|
||||
{
|
||||
name: 'AdRepository',
|
||||
name: HEALTH_AD_REPOSITORY,
|
||||
repository: adRepository,
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user