Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: next is not defined in controller product.js #1

Open
neemssoni opened this issue Aug 25, 2018 · 0 comments
Open

ReferenceError: next is not defined in controller product.js #1

neemssoni opened this issue Aug 25, 2018 · 0 comments

Comments

@neemssoni
Copy link

neemssoni commented Aug 25, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant