Skip to content

Commit

Permalink
fix: 순환 참조 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
rladydgn committed Dec 6, 2023
1 parent 681e8da commit f0b0a08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions be/algo-with-me-api/src/competition/competition.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BullModule } from '@nestjs/bull';
import { Module } from '@nestjs/common';
import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { CompetitionController } from './controllers/competition.controller';
Expand Down Expand Up @@ -33,9 +33,10 @@ import { UserModule } from '@src/user/user.module';
}),
AuthModule,
UserModule,
DashboardModule,
forwardRef(() => DashboardModule),
],
controllers: [ProblemController, CompetitionController],
providers: [ProblemService, CompetitionService, CompetitionGateWay],
exports: [CompetitionService],
})
export class CompetitionModule {}
4 changes: 2 additions & 2 deletions be/algo-with-me-api/src/dashboard/dashboard.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Module } from '@nestjs/common';
import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';

import { DashboardController } from './dashboard.controller';
Expand All @@ -13,7 +13,7 @@ import { CompetitionProblem } from '@src/competition/entities/competition.proble
@Module({
imports: [
TypeOrmModule.forFeature([Dashboard, CompetitionProblem, Competition]),
CompetitionModule,
forwardRef(() => CompetitionModule),
],
providers: [DashboardGateway, DashboardService],
controllers: [DashboardController],
Expand Down

0 comments on commit f0b0a08

Please sign in to comment.