Fix mongoose usefindandmodify depreciation msg
This commit is contained in:
+1
-1
@@ -268,7 +268,7 @@ function is_locked(lockfile, cb) {
|
||||
module.exports = {
|
||||
// initialize DB
|
||||
connect: function(database, cb) {
|
||||
mongoose.connect(database, { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true }, function(err) {
|
||||
mongoose.connect(database, { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true, useFindAndModify: false }, function(err) {
|
||||
if (err) {
|
||||
console.log('Unable to connect to database: %s', database);
|
||||
console.log('Aborting');
|
||||
|
||||
Reference in New Issue
Block a user