From 0eb940c5ce7d1c40df8be2af50622b2b325a7e6b Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Thu, 29 Jan 2026 16:22:55 +0100 Subject: [PATCH] feat: add `ContentsModule` to `CommentsModule` with forward reference - Updated imports in `comments.module.ts` to include `ContentsModule` using `forwardRef` for dependency resolution. --- backend/src/comments/comments.module.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/src/comments/comments.module.ts b/backend/src/comments/comments.module.ts index a8f8e3e..5a76d47 100644 --- a/backend/src/comments/comments.module.ts +++ b/backend/src/comments/comments.module.ts @@ -1,5 +1,6 @@ -import { Module } from "@nestjs/common"; +import { Module, forwardRef } from "@nestjs/common"; import { AuthModule } from "../auth/auth.module"; +import { ContentsModule } from "../contents/contents.module"; import { RealtimeModule } from "../realtime/realtime.module"; import { S3Module } from "../s3/s3.module"; import { CommentsController } from "./comments.controller"; @@ -8,7 +9,12 @@ import { CommentLikesRepository } from "./repositories/comment-likes.repository" import { CommentsRepository } from "./repositories/comments.repository"; @Module({ - imports: [AuthModule, S3Module, RealtimeModule], + imports: [ + AuthModule, + S3Module, + RealtimeModule, + forwardRef(() => ContentsModule), + ], controllers: [CommentsController], providers: [CommentsService, CommentsRepository, CommentLikesRepository], exports: [CommentsService],