29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { CqrsModule } from '@nestjs/cqrs';
|
|
import { PaymentMethodModel } from 'src/modules/transaction/payment-method/data/models/payment-method.model';
|
|
import { PaymentMethodDataService } from 'src/modules/transaction/payment-method/data/services/payment-method-data.service';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { CONNECTION_NAME } from 'src/core/strings/constants/base.constants';
|
|
import { TransactionModel } from 'src/modules/transaction/transaction/data/models/transaction.model';
|
|
import { TransactionDataService } from 'src/modules/transaction/transaction/data/services/transaction-data.service';
|
|
import { PaymentTransactionHandler } from './domain/handlers/payment-transaction.handler';
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule.forRoot(),
|
|
TypeOrmModule.forFeature(
|
|
[PaymentMethodModel, TransactionModel],
|
|
CONNECTION_NAME.DEFAULT,
|
|
),
|
|
CqrsModule,
|
|
],
|
|
controllers: [],
|
|
providers: [
|
|
PaymentTransactionHandler,
|
|
PaymentMethodDataService,
|
|
TransactionDataService,
|
|
],
|
|
})
|
|
export class MailModule {}
|