This commit is contained in:
sbriat 2023-02-01 15:15:16 +01:00
parent d6259ec35a
commit b812d15048
1 changed files with 1 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import { ConfigurationProfile } from './mappers/configuration.profile';
CqrsModule,
RabbitMQModule.forRootAsync(RabbitMQModule, {
imports: [ConfigModule],
inject: [ConfigService],
useFactory: async (configService: ConfigService) => ({
exchanges: [
{
@ -35,7 +36,6 @@ import { ConfigurationProfile } from './mappers/configuration.profile';
uri: configService.get<string>('RMQ_URI'),
connectionInitOptions: { wait: false },
}),
inject: [ConfigService],
}),
],
exports: [],