From 9b02d9fa07cdf822a2b8e0943000cc110bc2761f Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Sat, 25 Oct 2025 20:18:02 +0330 Subject: [PATCH] fix : delete category --- src/modules/category/category.service.ts | 1 + 1 file changed, 1 insertion(+) 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 }, );