fix: add RedisModule to CollabAppModule
This commit is contained in:
parent
3a9bdfbb06
commit
7861b5b186
1 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ import { EventEmitterModule } from '@nestjs/event-emitter';
|
||||||
import { HealthModule } from '../../integrations/health/health.module';
|
import { HealthModule } from '../../integrations/health/health.module';
|
||||||
import { CollaborationController } from './collaboration.controller';
|
import { CollaborationController } from './collaboration.controller';
|
||||||
import { LoggerModule } from '../../common/logger/logger.module';
|
import { LoggerModule } from '../../common/logger/logger.module';
|
||||||
|
import { RedisModule } from '@nestjs-labs/nestjs-ioredis';
|
||||||
|
import { RedisConfigService } from '../../integrations/redis/redis-config.service';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
|
|
@ -19,6 +21,9 @@ import { LoggerModule } from '../../common/logger/logger.module';
|
||||||
QueueModule,
|
QueueModule,
|
||||||
HealthModule,
|
HealthModule,
|
||||||
EventEmitterModule.forRoot(),
|
EventEmitterModule.forRoot(),
|
||||||
|
RedisModule.forRootAsync({
|
||||||
|
useClass: RedisConfigService,
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
controllers: [
|
controllers: [
|
||||||
AppController,
|
AppController,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue