Skip to content

Commit cd8306a

Browse files
committed
Update dependencies and remove useMongoClient.
1 parent 1a4c3c9 commit cd8306a

File tree

3 files changed

+157
-201
lines changed

3 files changed

+157
-201
lines changed

Diff for: models.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const mongoose = require('mongoose')
33

44
// Connect to the local MongoDB database named “testdb”
5-
mongoose.connect('mongodb://localhost/testdb', { useMongoClient: true })
5+
mongoose.connect('mongodb://localhost/testdb')
66

77
// Use real promises
88
mongoose.Promise = global.Promise

0 commit comments

Comments
 (0)