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:
parent
62d0e459c0
commit
7003a3e8c7
|
@ -355,6 +355,8 @@ AbstractClass.all = function all(params, cb) {
|
|||
}
|
||||
cb(err, collection);
|
||||
}
|
||||
else
|
||||
cb(err, []);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue