alffrey
alffrey
I have created a dynamic model "Item" (item.json). I want to override the "find" method. I wrote the following in item.js module.exports = function(Item) { Item.find = function(cb) { cb(null,...
@fabien I changed my method signature to "Item.find = function (params, cb)" but still no luck.
@fabien The overridden method is not getting called at all. I even tried putting in a console.log statement inside the method and it is not getting executed. From the explorer...
@veekungx Thank you so much. Your solution works.