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
Been searching around for an answer to this on Google/Stack Overflow but I can't seem to find a solution. A few days ago a few of my unit tests broke, all with errors similar to:
1) blueprints:destroy should destroy a user with id = 1:
TypeError: req.param is not a function
at Object.module.exports.populateEach (node_modules/sails/lib/hooks/blueprints/actionUtil.js:35:27)
at destroyOneRecord (api/blueprints/destroy.js:9:502)
at Context.<anonymous> (test/unit/blueprints/destroy.test.js:42:5)
Taking a look at actionUtil.js and the express documentation I noticed req.param is deprecated. I'm currently using "sails": "^0.11.2" in my project. I tried removing node_modules and running npm install again but I'm still getting the same issue.
My main question is: is actionUtil.js broken for anyone else? Or is it just me? If someone can confirm that I'm not crazy I can create a fix for this today and send a PR.
The text was updated successfully, but these errors were encountered:
Been searching around for an answer to this on Google/Stack Overflow but I can't seem to find a solution. A few days ago a few of my unit tests broke, all with errors similar to:
Taking a look at actionUtil.js and the express documentation I noticed req.param is deprecated. I'm currently using
"sails": "^0.11.2"
in my project. I tried removing node_modules and runningnpm install
again but I'm still getting the same issue.My main question is: is actionUtil.js broken for anyone else? Or is it just me? If someone can confirm that I'm not crazy I can create a fix for this today and send a PR.
The text was updated successfully, but these errors were encountered: