@nodefony/mongo-bundle
Advanced tools
Comparing version 4.0.0-beta.1 to 4.0.0-beta.2
{ | ||
"name": "@nodefony/mongo-bundle", | ||
"version": "4.0.0-beta.1", | ||
"version": "4.0.0-beta.2", | ||
"description": "Nodefony Framework Bundle mongodb", | ||
@@ -19,4 +19,4 @@ "scripts": {}, | ||
"dependencies": { | ||
"mongodb": "^3.1.3", | ||
"mongoose": "^5.2.9" | ||
"mongodb": "^3.1.4", | ||
"mongoose": "^5.2.13" | ||
}, | ||
@@ -23,0 +23,0 @@ "devDependencies": {}, |
@@ -17,3 +17,4 @@ /** | ||
socketTimeoutMS: 0, | ||
keepAlive: true | ||
keepAlive: true, | ||
useNewUrlParser: true | ||
}; | ||
@@ -26,2 +27,3 @@ | ||
this.engine = Mongoose; | ||
this.engine.set('useCreateIndex', true); | ||
} | ||
@@ -28,0 +30,0 @@ |
@@ -10,3 +10,3 @@ nodefony.register.call(nodefony.session.storage, "mongoose", function () { | ||
}; | ||
return this.entity.remove(where).then((results) => { | ||
return this.entity.deleteMany(where).then((results) => { | ||
let severity = "DEBUG"; | ||
@@ -51,3 +51,3 @@ if (!results) { | ||
this.gc(this.gc_maxlifetime, contextSession); | ||
return this.entity.count({ | ||
return this.entity.countDocuments({ | ||
context: contextSession | ||
@@ -54,0 +54,0 @@ }).then((sessionCount) => { |
Sorry, the diff of this file is not supported yet
26435
738
Updatedmongodb@^3.1.4
Updatedmongoose@^5.2.13