moved to forFeature/autoLoadEntities pattern
This commit is contained in:
parent
8e7016d15c
commit
47e59c38e3
6 changed files with 25 additions and 10 deletions
|
|
@ -2,9 +2,13 @@ import { Module } from '@nestjs/common';
|
|||
import { MerchantsService } from './merchants.service';
|
||||
import { MerchantsController } from './merchants.controller';
|
||||
import { MerchantDataService } from './merchant-data.service';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { Merchant } from './entities/merchant.entity';
|
||||
|
||||
@Module({
|
||||
controllers: [MerchantsController],
|
||||
providers: [MerchantsService, MerchantDataService]
|
||||
providers: [MerchantsService, MerchantDataService],
|
||||
imports: [TypeOrmModule.forFeature([Merchant])],
|
||||
exports: [TypeOrmModule]
|
||||
})
|
||||
export class MerchantsModule { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue