mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
23 lines
1.0 KiB
TypeScript
23 lines
1.0 KiB
TypeScript
import { Module } from "@nestjs/common";
|
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
import { ProvidersModule } from "../providers/providers.module";
|
|
import { NotificationOutbox } from "../outbox/entities/notification-outbox.entity";
|
|
import { PaymentIntent } from "./entities/payment-intent.entity";
|
|
import { BillReferenceService } from "./bill-reference.service";
|
|
import { IntentsController } from "./intents.controller";
|
|
import { IntentsRepository } from "./intents.repository";
|
|
import { IntentsService } from "./intents.service";
|
|
|
|
@Module({
|
|
// NotificationOutbox is registered here because terminal transitions insert outbox rows
|
|
// inside the intent-finalizing transaction (transactional outbox).
|
|
imports: [
|
|
TypeOrmModule.forFeature([PaymentIntent, NotificationOutbox]),
|
|
ProvidersModule,
|
|
],
|
|
controllers: [IntentsController],
|
|
providers: [IntentsService, IntentsRepository, BillReferenceService],
|
|
exports: [IntentsService, IntentsRepository, BillReferenceService],
|
|
})
|
|
export class IntentsModule {}
|