Skip to content

Commit

Permalink
chore: conditionally read preference
Browse files Browse the repository at this point in the history
  • Loading branch information
ijemmao committed Feb 16, 2023
1 parent c49a4aa commit 7ea5e45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -145,7 +145,7 @@
"babel-loader": "^8.1.0",
"cross-env": "^7.0.2",
"cypress": "^6.0.0",
"eslint": "^7.10.0",
"eslint": "7.10.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-next": "^12.0.7",
"eslint-config-prettier": "^6.12.0",
Expand Down
1 change: 0 additions & 1 deletion src/services/database.js
Expand Up @@ -10,7 +10,6 @@ export const createDbConnection = () => {
useNewUrlParser: true,
useUnifiedTopology: true,
autoIndex: true,
readPreference: 'nearest',
});

console.log('Attempting MongoDB URI:', MONGO_URI);
Expand Down

0 comments on commit 7ea5e45

Please sign in to comment.