mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-27 00:54:54 +00:00
feat: working on creating parent card
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { forwardRef, Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { NeoLeapModule } from '~/common/modules/neoleap/neoleap.module';
|
||||
import { CustomerModule } from '~/customer/customer.module';
|
||||
import { CardsController } from './controllers';
|
||||
import { Card } from './entities';
|
||||
import { Account } from './entities/account.entity';
|
||||
import { Transaction } from './entities/transaction.entity';
|
||||
@ -11,7 +14,11 @@ import { AccountService } from './services/account.service';
|
||||
import { TransactionService } from './services/transaction.service';
|
||||
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([Card, Account, Transaction])],
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([Card, Account, Transaction]),
|
||||
forwardRef(() => NeoLeapModule),
|
||||
forwardRef(() => CustomerModule), // <-- add forwardRef here
|
||||
],
|
||||
providers: [
|
||||
CardService,
|
||||
CardRepository,
|
||||
@ -21,5 +28,6 @@ import { TransactionService } from './services/transaction.service';
|
||||
AccountRepository,
|
||||
],
|
||||
exports: [CardService, TransactionService],
|
||||
controllers: [CardsController],
|
||||
})
|
||||
export class CardModule {}
|
||||
|
||||
Reference in New Issue
Block a user