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 { CategoriesService } from './categories.service';
|
||||
import { CategoriesController } from './categories.controller';
|
||||
import { CategoryDataService } from './category-data.service';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { Category } from './entities/category.entity';
|
||||
|
||||
@Module({
|
||||
controllers: [CategoriesController],
|
||||
providers: [CategoriesService, CategoryDataService]
|
||||
providers: [CategoriesService, CategoryDataService],
|
||||
imports: [TypeOrmModule.forFeature([Category])],
|
||||
exports: [TypeOrmModule]
|
||||
})
|
||||
export class CategoriesModule { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue