feat: fix
This commit is contained in:
@@ -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],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user