Fix: bug filter get product by categories
This commit is contained in:
parent
9e177679a8
commit
1aa61bfe36
|
@ -369,9 +369,7 @@ export class ProductService {
|
||||||
if (subCategories && filterSubCategories.length > 0) {
|
if (subCategories && filterSubCategories.length > 0) {
|
||||||
baseQuery.where('product.sub_categories_id IN (:...subCategoryId)', {
|
baseQuery.where('product.sub_categories_id IN (:...subCategoryId)', {
|
||||||
subCategoryId: filterSubCategories,
|
subCategoryId: filterSubCategories,
|
||||||
}).where(`product.status = 'ACTIVE'`)
|
}).andWhere(`product.status = 'ACTIVE'`)
|
||||||
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const newData = []
|
const newData = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user