We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The method "all" is not working because the method "toArray" changed from callback to promise
this.db.collection(this.options.collection). find({}).toArray(function(error, sessions) { if (error) { const e = new Error('Error gathering sessions'); return _this._errorHandler(e, callback); } else if (sessions) { if (sessions) { return callback(null, sessions); } } else { return callback(); } });
return this.db.collection(this.options.collection).find({}).toArray() .then( sessions => { return callback(null, sessions); }) .catch( error =>{ const e = new Error('Error finding sessions: ' + error.message); return _this._errorHandler(e, callback); })
The text was updated successfully, but these errors were encountered:
I am experiencing this same issue. Will this be fixed? Is connect-mongodb-session still being maintained?
connect-mongodb-session
Sorry, something went wrong.
No branches or pull requests
The method "all" is not working because the method "toArray" changed from callback to promise
Before
After
The text was updated successfully, but these errors were encountered: