Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db): fix db auth problem in production (#240)
intends to fix the following error message in production: ``` === Sun, 27 Oct 2019 11:38:50 GMT, Warning (concise trace) at Object.exports.init (/home/adrien/openwhyd/app/models/mongodb.js:163:23) the options [useUnifiedTopology] is not supported /home/adrien/openwhyd/node_modules/mongodb/lib/mongo_client.js:462 throw err ^ MongoError: Authentication failed. at Function.MongoError.create (/home/adrien/openwhyd/node_modules/mongodb-core/lib/error.js:31:11) at /home/adrien/openwhyd/node_modules/mongodb-core/lib/connection/pool.js:497:72 at authenticateStragglers (/home/adrien/openwhyd/node_modules/mongodb-core/lib/connection/pool.js:443:16) at Connection.messageHandler (/home/adrien/openwhyd/node_modules/mongodb-core/lib/connection/pool.js:477:5) at Socket.<anonymous> (/home/adrien/openwhyd/node_modules/mongodb-core/lib/connection/connection.js:333:22) at Socket.emit (events.js:198:13) ```
- Loading branch information