Fix: bug filter get product by categories

This commit is contained in:
mfadiln2018 2022-05-25 11:30:08 +07:00
parent 9e177679a8
commit 1aa61bfe36

View File

@ -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 = []