import { Module, forwardRef } from "@nestjs/common"; import { ConfigModule } from "@nestjs/config"; import { IntegrationsModule } from "@bff/integrations/integrations.module.js"; import { OrdersModule } from "@bff/modules/orders/orders.module.js"; import { ServicesModule } from "@bff/modules/services/services.module.js"; import { NotificationsModule } from "@bff/modules/notifications/notifications.module.js"; import { ServicesCdcSubscriber } from "./services-cdc.subscriber.js"; import { OrderCdcSubscriber } from "./order-cdc.subscriber.js"; @Module({ imports: [ ConfigModule, forwardRef(() => IntegrationsModule), forwardRef(() => OrdersModule), forwardRef(() => ServicesModule), forwardRef(() => NotificationsModule), ], providers: [ ServicesCdcSubscriber, // CDC for services cache invalidation + notifications OrderCdcSubscriber, // CDC for order cache invalidation ], }) export class SalesforceEventsModule {}