Fix: bug filter get product by categories
This commit is contained in:
parent
1050ca4c85
commit
9e177679a8
|
@ -344,6 +344,7 @@ export class ProductService {
|
|||
'product.name',
|
||||
'product.code',
|
||||
'product.type',
|
||||
'product.status',
|
||||
'sub_categories.name',
|
||||
'current_price.admin_price as admin_price',
|
||||
'current_price.mark_up_price as markup_price',
|
||||
|
@ -368,7 +369,9 @@ export class ProductService {
|
|||
if (subCategories && filterSubCategories.length > 0) {
|
||||
baseQuery.where('product.sub_categories_id IN (:...subCategoryId)', {
|
||||
subCategoryId: filterSubCategories,
|
||||
});
|
||||
}).where(`product.status = 'ACTIVE'`)
|
||||
|
||||
;
|
||||
}
|
||||
|
||||
const newData = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user