fix: product
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user