Merge branch 'refactor' into 'main'
refactor See merge request v3/services/configuration!8
This commit is contained in:
commit
d13c9bfdb9
|
@ -21,6 +21,7 @@ import { ConfigurationProfile } from './mappers/configuration.profile';
|
||||||
CqrsModule,
|
CqrsModule,
|
||||||
RabbitMQModule.forRootAsync(RabbitMQModule, {
|
RabbitMQModule.forRootAsync(RabbitMQModule, {
|
||||||
imports: [ConfigModule],
|
imports: [ConfigModule],
|
||||||
|
inject: [ConfigService],
|
||||||
useFactory: async (configService: ConfigService) => ({
|
useFactory: async (configService: ConfigService) => ({
|
||||||
exchanges: [
|
exchanges: [
|
||||||
{
|
{
|
||||||
|
@ -35,7 +36,6 @@ import { ConfigurationProfile } from './mappers/configuration.profile';
|
||||||
uri: configService.get<string>('RMQ_URI'),
|
uri: configService.get<string>('RMQ_URI'),
|
||||||
connectionInitOptions: { wait: false },
|
connectionInitOptions: { wait: false },
|
||||||
}),
|
}),
|
||||||
inject: [ConfigService],
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
exports: [],
|
exports: [],
|
||||||
|
|
Loading…
Reference in New Issue