diff --git a/controllers/customerController.js b/controllers/customerController.js index 8aaef92..7dc76fc 100644 --- a/controllers/customerController.js +++ b/controllers/customerController.js @@ -39,7 +39,7 @@ exports.getVendors = asyncHandler(async (req, res) => { }); } - const vendors = await Vendor.find(filters) + const vendors = await Vendor.find({...filters, status: 'active'}) .sort(sortOptions) .skip((page - 1) * pageSize) .limit(pageSize);