Added missing callback when a model is not found

This commit is contained in:
Federico Rampazzo 2015-10-28 09:15:32 +00:00
parent a2ed2a401b
commit 2de499ccb0
1 changed files with 2 additions and 0 deletions

View File

@ -1464,6 +1464,8 @@ DataAccessObject.find = function find(query, options, cb) {
results.push(obj);
callback();
});
} else {
callback();
}
},
function(err) {