Skip to content

Commit 0539758

Browse files
refactor: deprecation warning on model.findAndModify() (console flood) (#575)
1 parent 37bf296 commit 0539758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/utils/mongoose-connect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function mongooseConnect() {
77
return new P((resolve, reject) => {
88
mongoose.connect(
99
'mongodb://localhost:27017/forest-test',
10-
{ useNewUrlParser: true, useUnifiedTopology: true },
10+
{ useNewUrlParser: true, useUnifiedTopology: true, useFindAndModify: false },
1111
);
1212

1313
const db = mongoose.connection;

0 commit comments

Comments
 (0)