diff --git a/lib/dao.js b/lib/dao.js index 35d4b82d..9ecb8b87 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -909,7 +909,7 @@ DataAccessObject.findByIds = function(ids, query, options, cb) { if (isPKMissing(this, cb)) { return cb.promise; } else if (ids.length === 0) { - process.nextTick(cb(null, [])); + process.nextTick(function(){cb(null, []);}); return cb.promise; }