fix : delete category
This commit is contained in:
@@ -157,6 +157,7 @@ class CategoryService {
|
|||||||
const productsWithCategory = await this.productRepo.model.find(
|
const productsWithCategory = await this.productRepo.model.find(
|
||||||
{
|
{
|
||||||
category: category._id.toString(),
|
category: category._id.toString(),
|
||||||
|
deleted: false,
|
||||||
},
|
},
|
||||||
{ _id: 1, title_fa: 1 },
|
{ _id: 1, title_fa: 1 },
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user