Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest version of Parse Server.
Issue Description
Database listen warning
Steps to reproduce
Start a parse server on master branch
Actual Outcome
Mongo listen database warning
Expected Outcome
No deprecation
Environment
5.0.0-alpha.1
Parse server need to listen directly on mongo client, not on the database. Source code of the warning
const database = client.db(options.dbName);
if (!database) {
delete this.connectionPromise;
return;
}
database.on('error', () => {
delete this.connectionPromise;
});
database.on('close', () => {
delete this.connectionPromise;
});