Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
pub
yapi
Commits
a74b7793
Commit
a74b7793
authored
Apr 28, 2020
by
苏文雄
Browse files
fix: 修复因 mongodb 一个废弃报错导致部署不成功问题
parent
895e9d13
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
CHANGELOG.md
CHANGELOG.md
+3
-0
package.json
package.json
+1
-1
server/utils/db.js
server/utils/db.js
+1
-1
No files found.
CHANGELOG.md
View file @
a74b7793
## v1.9.1
*
修复因 mongodb 一个废弃报错导致部署不成功问题
## v1.9.0
*
修复测试集合部分情况下闪动问题
*
修改ldap filter的匹配规则,使其可以匹配&和|操作符 Merge pull request #1631 from vvkkhjt/master
...
...
package.json
View file @
a74b7793
{
"name"
:
"yapi-vendor"
,
"version"
:
"1.9.
0
"
,
"version"
:
"1.9.
1
"
,
"description"
:
"YAPI"
,
"main"
:
"server/app.js"
,
"scripts"
:
{
...
...
server/utils/db.js
View file @
a74b7793
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment