Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when used count query done function never call #21

Open
ihteandr opened this issue Nov 10, 2014 · 0 comments
Open

when used count query done function never call #21

ihteandr opened this issue Nov 10, 2014 · 0 comments

Comments

@ihteandr
Copy link

line 1245 to 1258,
return parallel(keys, function(docKey, next) {
if (filter.length >= 3) {
return filter(cache[docKey], docKey, function(match) {
if (match) results++;
return next();
});
}
if (filter(cache[docKey], docKey) === true) {
results++;
}
return next();
});
return done(null, results);
after first return parallel done function never call, because parallel function already returned
when call db.find({}).count()(function(){})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant