Merge branch 'development' into 'devops-staging'

Fix: bug filter get product by categories

See merge request empatnusabangsa/ppob/ppob-backend!177
This commit is contained in:
muhammad fadil 2022-05-25 04:30:48 +00:00
commit 45148ece81

View File

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