|
1 | 1 | import { Module } from "@nestjs/common";
|
| 2 | +import { CqrsModule } from "@nestjs/cqrs"; |
2 | 3 | import { TypeOrmModule } from "@nestjs/typeorm";
|
3 | 4 |
|
4 | 5 | import { EmailModule } from "src/core/email/email.module";
|
5 | 6 | import { OrganizationMembership } from "src/features/organizations/infrastructure/entities/organization-membership.entity";
|
| 7 | +import { OrganizationModule } from "src/features/organizations/organization.module"; |
6 | 8 | import { Profile } from "src/features/profiles";
|
| 9 | +import { ProfileModule } from "src/features/profiles/profile.module"; |
7 | 10 |
|
8 | 11 | import { AuthenticationModule } from "../authentication/authentication.module";
|
| 12 | +import { QueryModule } from "../query/query.module"; |
| 13 | +import { GetNotificationListHandler } from "./application/handlers/query-handlers/get-notification-list.handler"; |
| 14 | +import { NotificationsController } from "./client/controllers/notifications.controller"; |
| 15 | +import { NotificationService } from "./domain/services/notification.service"; |
| 16 | +import { Notification } from "./infrastructure/entities/notification.entity"; |
9 | 17 | import { NotificationGateway } from "./notification.gateway";
|
10 |
| -import { NotificationService } from "./notification.service"; |
11 | 18 |
|
12 | 19 | @Module({
|
| 20 | + controllers: [NotificationsController], |
13 | 21 | exports: [NotificationService],
|
14 | 22 | imports: [
|
15 | 23 | AuthenticationModule,
|
| 24 | + CqrsModule, |
16 | 25 | EmailModule,
|
17 |
| - TypeOrmModule.forFeature([OrganizationMembership, Profile]), |
| 26 | + OrganizationModule, |
| 27 | + ProfileModule, |
| 28 | + QueryModule, |
| 29 | + TypeOrmModule.forFeature([Notification, OrganizationMembership, Profile]), |
| 30 | + ], |
| 31 | + providers: [ |
| 32 | + NotificationGateway, |
| 33 | + GetNotificationListHandler, |
| 34 | + NotificationService, |
18 | 35 | ],
|
19 |
| - providers: [NotificationGateway, NotificationService], |
20 | 36 | })
|
21 | 37 | export class NotificationModule {}
|
0 commit comments