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) {
|
||||
baseQuery.where('product.sub_categories_id IN (:...subCategoryId)', {
|
||||
subCategoryId: filterSubCategories,
|
||||
}).where(`product.status = 'ACTIVE'`)
|
||||
|
||||
;
|
||||
}).andWhere(`product.status = 'ACTIVE'`)
|
||||
}
|
||||
|
||||
const newData = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user