Merge pull request #755 from zmijevik/zmijevik-feature/include-if-contains-results
fixes #753
This commit is contained in:
commit
bc825fafc4
|
@ -159,6 +159,7 @@ Inclusion.include = function (objects, include, options, cb) {
|
|||
var self = this;
|
||||
|
||||
if (!include || (Array.isArray(include) && include.length === 0) ||
|
||||
(Array.isArray(objects) && objects.length === 0) ||
|
||||
(isPlainObject(include) && Object.keys(include).length === 0)) {
|
||||
// The objects are empty
|
||||
return process.nextTick(function() {
|
||||
|
|
Loading…
Reference in New Issue