feat: add WebSocket notifications for new comments

- Introduced enriched comment retrieval with user information and like statistics.
- Implemented WebSocket notifications to notify users of new comments on content.
- Updated dependency injection to include `EventsGateway` and `RealtimeModule`.
This commit is contained in:
Mathis HERRIOT
2026-01-29 15:46:00 +01:00
parent ace438be6b
commit 6d80795e44
3 changed files with 53 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
import { Module } from "@nestjs/common";
import { AuthModule } from "../auth/auth.module";
import { RealtimeModule } from "../realtime/realtime.module";
import { S3Module } from "../s3/s3.module";
import { CommentsController } from "./comments.controller";
import { CommentsService } from "./comments.service";
@@ -7,7 +8,7 @@ import { CommentLikesRepository } from "./repositories/comment-likes.repository"
import { CommentsRepository } from "./repositories/comments.repository";
@Module({
imports: [AuthModule, S3Module],
imports: [AuthModule, S3Module, RealtimeModule],
controllers: [CommentsController],
providers: [CommentsService, CommentsRepository, CommentLikesRepository],
exports: [CommentsService],