Skip to content

Commit

Permalink
Merge pull request #240 from johanbook/blog-module
Browse files Browse the repository at this point in the history
Activate blog module
  • Loading branch information
johanbook authored Aug 8, 2023
2 parents 4d88091 + 8d85032 commit af8a8d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -23,6 +24,7 @@ import { dataSourceOptions } from "./infrastructure/database/data-source.config"

@Module({
imports: [
BlogsModule,
ChatModule,
ClassificationsModule,
ErrorHandlingModule,
Expand Down
3 changes: 3 additions & 0 deletions services/api/src/features/blogs/blogs.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -12,6 +14,7 @@ import { BlogPost } from "./infrastructure/entities/blog-post.entity";
imports: [
CqrsModule,
OrganizationModule,
QueryModule,
TypeOrmModule.forFeature([BlogPost]),
],
controllers: [BlogsController],
Expand Down

0 comments on commit af8a8d9

Please sign in to comment.