Skip to content

Commit

Permalink
fix: fix mongodb auth parameter
Browse files Browse the repository at this point in the history
Change 'user' field to 'username'
  • Loading branch information
Lorex committed May 28, 2022
1 parent c081573 commit 97224e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/mongodb/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ module.exports = exports = function(config) {
// useNewUrlParser: true,
// useFindAndModify: false,
// useUnifiedTopology: true,

auth: {
authSource: 'admin',
user: id,
username: id,
password: pwd
}
}).then(()=> {
Expand Down

0 comments on commit 97224e3

Please sign in to comment.