diff --git a/src/modules/category/category.service.ts b/src/modules/category/category.service.ts index fcc3e8b..0511381 100644 --- a/src/modules/category/category.service.ts +++ b/src/modules/category/category.service.ts @@ -157,6 +157,7 @@ class CategoryService { const productsWithCategory = await this.productRepo.model.find( { category: category._id.toString(), + deleted: false, }, { _id: 1, title_fa: 1 }, );