mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
21 lines
852 B
TypeScript
21 lines
852 B
TypeScript
import { Global, Module } from "@nestjs/common";
|
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
|
|
import { ManualPaymentSetting } from "./entities/manual-payment-setting.entity";
|
|
import { ManualPaymentSettingsController } from "./manual-payment-settings.controller";
|
|
import { ManualPaymentSettingsService } from "./manual-payment-settings.service";
|
|
|
|
/**
|
|
* Global so billing can inject {@link ManualPaymentSettingsService} to gate
|
|
* the manual-settlement worklist and confirmation endpoint without importing
|
|
* this module (and without a cycle, since this module needs nothing back).
|
|
*/
|
|
@Global()
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([ManualPaymentSetting])],
|
|
controllers: [ManualPaymentSettingsController],
|
|
providers: [ManualPaymentSettingsService],
|
|
exports: [ManualPaymentSettingsService],
|
|
})
|
|
export class PaymentSettingsModule {}
|