We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 12b2b7b + 7db09ab commit 5bb2d43Copy full SHA for 5bb2d43
server/utils/mongoConstants.js
@@ -1,7 +1,5 @@
1
function getMongoOptions() {
2
- return process.env.MONGO_PORT === '27017'
3
- ? ''
4
- : '?readPreference=secondary';
+ return '?readPreference=secondary';
5
}
6
function getMongoUri() {
7
return `mongodb://${process.env.MONGO_BASE_URI}:${process.env.MONGO_PORT}/${
0 commit comments