Update lib/abstract-class.js

make sure that callback is called when there are no records or data in the all method
This commit is contained in:
Mike P 2012-08-18 11:22:00 -03:00
parent 62d0e459c0
commit 7003a3e8c7
1 changed files with 2 additions and 0 deletions

View File

@ -355,6 +355,8 @@ AbstractClass.all = function all(params, cb) {
}
cb(err, collection);
}
else
cb(err, []);
});
};