fix: register entities in module
This commit is contained in:
parent
74711e0823
commit
5a401ec862
|
@ -2,8 +2,21 @@ import { Module } from '@nestjs/common';
|
|||
import { ProductService } from './product.service';
|
||||
import { ProductController } from './product.controller';
|
||||
import { ProductCategoriesService } from './product-categories.service';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { Product } from './entities/product.entity';
|
||||
import { ProductCategories } from './entities/product-category.entity';
|
||||
import { ProductHistoryPrice } from './entities/product-history-price.entity';
|
||||
import { ProductSubCategories } from './entities/product-sub-category.entity';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([
|
||||
Product,
|
||||
ProductCategories,
|
||||
ProductHistoryPrice,
|
||||
ProductSubCategories,
|
||||
]),
|
||||
],
|
||||
controllers: [ProductController],
|
||||
providers: [ProductService, ProductCategoriesService],
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user