mirror of
https://gitlab.com/mobicoop/v3/service/ad.git
synced 2026-01-11 22:02:39 +00:00
use constants for messager
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
MessageBrokerPublisher,
|
||||
} from '@mobicoop/message-broker-module';
|
||||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
||||
import { SERVICE_NAME } from '@src/app.constants';
|
||||
|
||||
const imports = [
|
||||
MessageBrokerModule.forRootAsync({
|
||||
@@ -16,7 +17,7 @@ const imports = [
|
||||
): Promise<MessageBrokerModuleOptions> => ({
|
||||
uri: configService.get<string>('MESSAGE_BROKER_URI'),
|
||||
exchange: configService.get<string>('MESSAGE_BROKER_EXCHANGE'),
|
||||
name: 'ad',
|
||||
name: SERVICE_NAME,
|
||||
}),
|
||||
}),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user