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

Bug with bluebird and promisify [Fixed but don't know how to pull request] #14

Open
nvarcha opened this issue Oct 17, 2016 · 0 comments

Comments

@nvarcha
Copy link

nvarcha commented Oct 17, 2016

I was getting an error: Unhandled rejection TypeError: expecting an array or an iterable object but got [object Null]

According to this, the method signature changed.

So I changed the tree.js file like so:
Line 80 was:

streamWorker(cursor.stream(), numWorkers, function streamOnData(doc, done) {

                            var newPath = self.path + doc.path.substr(previousPath.length);
                            self.collection.update({ _id: doc._id }, { $set: { path: newPath } }, done);
                        },
                        next);

I changed to:

 streamWorker(cursor.stream(), function streamOnData(doc, done) {

                            var newPath = self.path + doc.path.substr(previousPath.length);
                            self.collection.update({ _id: doc._id }, { $set: { path: newPath } }, done);
                        },
                            {concurrency: numWorkers},
                        next);

I'm sorry I'm pretty new and I don't know how to create a pull request with this.

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