We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e425cbd commit d7be74fCopy full SHA for d7be74f
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