Skip to content

Commit

Permalink
fix: mongoose authSource param not working
Browse files Browse the repository at this point in the history
- authSource is not  in auth property, It should in
toplevel property like { authSource: "admin" }
  • Loading branch information
Chinlinlee committed May 31, 2022
1 parent ebc3a79 commit 501129a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/mongodb/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = exports = function(config) {
// useNewUrlParser: true,
// useFindAndModify: false,
// useUnifiedTopology: true,

authSource: "admin",
auth: {
authSource: 'admin',
username: id,
Expand Down

0 comments on commit 501129a

Please sign in to comment.