We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e425cbd + d7be74f commit 1c72a48Copy full SHA for 1c72a48
1 file changed
server/utils/db.js
@@ -16,7 +16,7 @@ function connect(callback) {
16
mongoose.Promise = global.Promise;
17
18
let config = yapi.WEBCONFIG;
19
- let options = {useNewUrlParser: true };
+ let options = {useNewUrlParser: true, useCreateIndex: true};
20
21
if (config.db.user) {
22
options.user = config.db.user;
0 commit comments