Skip to content

Commit

Permalink
fix:customer contaoller for active vendors (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnan05 authored Apr 3, 2024
1 parent 8a7df82 commit b6d98da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/customerController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b6d98da

Please sign in to comment.