I update my version of nodebb four days ago.In my program i try to get data for user so I use in my (controllers.js):
var db = module.parent.parent.require('./database'),
......// in a method
db.getUserData(uid, function(err, user) { if (err) { return err }
//the problem is that if I use db.setObject or other method, db variable works
// but in this case give me
TypeError: Object #<Object> has no method 'getUserData' at async.waterfall.input.username
Maybe in the new versione is changed something? Anyone can help me?