LearnBoost/mongoose — Issue #615: Impossible to get the doc result
Author: CodeWarriorAQ
Created: 2011-11-16 06:41:25+00:00
State: open

I'm crazy? Why its not function?

```javascript
var auth = function(u, p) {
this.U.findOne({usu : u, pass : p}, function(err, doc) {
return doc;
});
}

var john = auth('test', 'teste');

console.log(john) // undefined !?!?!?!?!
```