Commit a74b7793 authored by 苏文雄's avatar 苏文雄
Browse files

fix: 修复因 mongodb 一个废弃报错导致部署不成功问题

parent 895e9d13
## v1.9.1
* 修复因 mongodb 一个废弃报错导致部署不成功问题
## v1.9.0
* 修复测试集合部分情况下闪动问题
* 修改ldap filter的匹配规则,使其可以匹配&和|操作符 Merge pull request #1631 from vvkkhjt/master
......
{
"name": "yapi-vendor",
"version": "1.9.0",
"version": "1.9.1",
"description": "YAPI",
"main": "server/app.js",
"scripts": {
......
......@@ -19,7 +19,7 @@ function connect(callback) {
mongoose.set('useCreateIndex', true);
let config = yapi.WEBCONFIG;
let options = {useNewUrlParser: true, useCreateIndex: true};
let options = {useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true};
if (config.db.user) {
options.user = config.db.user;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment