fixed code for getProduct controller model targeted Course instead of Product

master
parent 5e332d1231
commit e46299cf37

@ -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));
}

Loading…
Cancel
Save