You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you have not passed next as parameter, instead of this : exports.product_create = function (req, res) { var content = new Product( { name: req.body.name, price: req.body.price } );
it should be : exports.product_create = function (req, res, next) { var content = new Product( { name: req.body.name, price: req.body.price } );
The text was updated successfully, but these errors were encountered:
you have not passed next as parameter, instead of this :
exports.product_create = function (req, res) { var content = new Product( { name: req.body.name, price: req.body.price } );
it should be :
exports.product_create = function (req, res, next) { var content = new Product( { name: req.body.name, price: req.body.price } );
The text was updated successfully, but these errors were encountered: