diff --git a/controllers/productControllers.js b/controllers/productControllers.js index e311e6b..6895416 100644 --- a/controllers/productControllers.js +++ b/controllers/productControllers.js @@ -379,7 +379,7 @@ exports.getCartDetails = async (req, res) => { module.exports.getProduct = (request, response) => { let reqParams = request.params.productId; - Course.findById(reqParams).then(result => response.send(result)) + Product.findById(reqParams).then(result => response.send(result)) .catch(error => response.send(error)); }