We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a543f92 commit 77815a0Copy full SHA for 77815a0
docker/edgev3/webapp/server/cronServer.js
@@ -67,7 +67,16 @@ const runApp = async () => {
67
mongoose.set('strictQuery', false);
68
mongoose
69
.connect(
70
- db
+ db,
71
+ {
72
+ authSource: "admin",
73
+ user: config.DATABASE.USERNAME,
74
+ pass: config.DATABASE.PASSWORD,
75
+ useCreateIndex: true,
76
+ useNewUrlParser: true,
77
+ useUnifiedTopology: true,
78
+ }
79
+ )
80
);
81
logger.info(`Successfully connected to database ${db}`);
82
// start server
0 commit comments