moved to forFeature/autoLoadEntities pattern

This commit is contained in:
Joe Arndt 2026-02-09 15:06:48 -06:00
parent 8e7016d15c
commit 47e59c38e3
6 changed files with 25 additions and 10 deletions

View file

@ -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 { }