diff --git a/src/product/product.service.ts b/src/product/product.service.ts index a17f617..b427541 100644 --- a/src/product/product.service.ts +++ b/src/product/product.service.ts @@ -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 = []