diff --git a/services/api/src/app.module.ts b/services/api/src/app.module.ts index 2d22e1e9..dcba7441 100644 --- a/services/api/src/app.module.ts +++ b/services/api/src/app.module.ts @@ -12,6 +12,7 @@ import { JournalModule } from "./core/journal/journal.module"; import { LoggingModule } from "./core/logging/logging.module"; import { NotificationModule } from "./core/notifications/notification.module"; import { minioOptions } from "./core/object-storage/minio.config"; +import { BlogsModule } from "./features/blogs/blogs.module"; import { ChatModule } from "./features/chat/chat.module"; import { MatchesModule } from "./features/matches/matches.module"; import { OrganizationModule } from "./features/organizations/organization.module"; @@ -23,6 +24,7 @@ import { dataSourceOptions } from "./infrastructure/database/data-source.config" @Module({ imports: [ + BlogsModule, ChatModule, ClassificationsModule, ErrorHandlingModule, diff --git a/services/api/src/features/blogs/blogs.module.ts b/services/api/src/features/blogs/blogs.module.ts index 4e4a7d69..a2a48e5b 100644 --- a/services/api/src/features/blogs/blogs.module.ts +++ b/services/api/src/features/blogs/blogs.module.ts @@ -2,6 +2,8 @@ import { Module } from "@nestjs/common"; import { CqrsModule } from "@nestjs/cqrs"; import { TypeOrmModule } from "@nestjs/typeorm"; +import { QueryModule } from "src/core/query/query.module"; + import { OrganizationModule } from "../organizations/organization.module"; import { GetBlogPostsHandler } from "./application/handlers/query-handlers/get-blog-posts.handler"; import { BlogsController } from "./client/controllers/blogs.controller"; @@ -12,6 +14,7 @@ import { BlogPost } from "./infrastructure/entities/blog-post.entity"; imports: [ CqrsModule, OrganizationModule, + QueryModule, TypeOrmModule.forFeature([BlogPost]), ], controllers: [BlogsController],