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 41f1804 commit 708b00a
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 @@ -34,7 +34,7 @@ module.exports = exports = function (config) {
// useNewUrlParser: true,
// useFindAndModify: false,
// useUnifiedTopology: true,

authSource: 'admin',
auth:
{
authSource: 'admin',
Expand Down

0 comments on commit 708b00a

Please sign in to comment.