From 2de499ccb043be6fc869a8957c8b208446d6476e Mon Sep 17 00:00:00 2001 From: Federico Rampazzo Date: Wed, 28 Oct 2015 09:15:32 +0000 Subject: [PATCH] Added missing callback when a model is not found --- lib/dao.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dao.js b/lib/dao.js index 0b042700..801de311 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -1464,6 +1464,8 @@ DataAccessObject.find = function find(query, options, cb) { results.push(obj); callback(); }); + } else { + callback(); } }, function(err) {