feat: fix

This commit is contained in:
mahyargdz
2025-07-12 14:54:16 +03:30
parent 633b23cf73
commit 5fe82bb661
18 changed files with 815 additions and 203 deletions
@@ -4,16 +4,42 @@ import { ConfigModule } from "@nestjs/config";
import { TypeOrmModule } from "@nestjs/typeorm";
import { NOTIFICATION } from "./constants";
import { LoggerModule } from "../logger/logger.module";
import { SettingModule } from "../settings/settings.module";
import { UtilsModule } from "../utils/utils.module";
import { Notification } from "./entities/notification.entity";
import {
AnnouncementHandler,
AnswerTicketHandler,
ApproveInvoiceHandler,
AssignTicketHandler,
BillInvoiceHandler,
BillInvoiceReminderHandler,
BlockServiceHandler,
BlogCommentHandler,
CreateInvoiceHandler,
CreateTicketHandler,
InvoiceOverdueHandler,
NewCriticismHandler,
NewCustomerHandler,
NewSubscriptionHandler,
NewTicketHandler,
NotificationHandlerFactory,
OtpHandler,
PaymentCancellationHandler,
PaymentReminderHandler,
RecurringInvoiceHandler,
ServiceReviewHandler,
UserLoginHandler,
WalletChargeHandler,
WalletDeductionHandler,
} from "./handlers";
import { NotificationController } from "./notifications.controller";
import { LoggerModule } from "../logger/logger.module";
import { NotificationsService } from "./providers/notifications.service";
import { NotificationProcessor } from "./queue/notification.processor";
import { NotificationQueue } from "./queue/notification.queue";
import { NotificationRepository } from "./repositories/notifications.repository";
import { NotificationSetting } from "../settings/entities/notification-setting.entity";
import { SettingModule } from "../settings/settings.module";
import { UtilsModule } from "../utils/utils.module";
@Module({
imports: [
@@ -36,7 +62,37 @@ import { NotificationSetting } from "../settings/entities/notification-setting.e
UtilsModule,
SettingModule,
],
providers: [NotificationRepository, NotificationsService, NotificationQueue, NotificationProcessor],
providers: [
NotificationRepository,
NotificationsService,
NotificationQueue,
NotificationProcessor,
// notification handlers
NotificationHandlerFactory,
OtpHandler,
UserLoginHandler,
WalletChargeHandler,
WalletDeductionHandler,
CreateInvoiceHandler,
BillInvoiceReminderHandler,
BillInvoiceHandler,
ApproveInvoiceHandler,
InvoiceOverdueHandler,
RecurringInvoiceHandler,
BlogCommentHandler,
ServiceReviewHandler,
NewCustomerHandler,
NewSubscriptionHandler,
NewCriticismHandler,
NewTicketHandler,
AnnouncementHandler,
AnswerTicketHandler,
CreateTicketHandler,
AssignTicketHandler,
BlockServiceHandler,
PaymentReminderHandler,
PaymentCancellationHandler,
],
controllers: [NotificationController],
exports: [NotificationRepository, NotificationsService, NotificationQueue],
})