fix: product

This commit is contained in:
ilham
2021-12-16 23:54:51 +07:00
parent 2e04cd4ee1
commit dbf19eb77a
3 changed files with 38 additions and 6 deletions

View File

@@ -95,6 +95,9 @@ export class ProductService {
}
async findAllBySubCategories(page, subCategories, supplier) {
if (!supplier) {
supplier = await this.supplierService.findByActive();
}
const baseQuery = this.productRepository
.createQueryBuilder('product')
.leftJoin('product.sub_categories', 'sub_categories')