diff --git a/lib/databases/mongodb.js b/lib/databases/mongodb.js index d07440a..3159777 100644 --- a/lib/databases/mongodb.js +++ b/lib/databases/mongodb.js @@ -79,6 +79,7 @@ _.extend(Mongo.prototype, { }); var finish = function (err) { + self.client = client; self.isConnected = true; if (!err) { self.emit('connect'); diff --git a/releasenotes.md b/releasenotes.md index d9edcb2..4b722a2 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -1,4 +1,4 @@ -## [v1.5.15](https://github.com/adrai/node-viewmodel/compare/v1.5.14...v1.5.15) +## [v1.5.16](https://github.com/adrai/node-viewmodel/compare/v1.5.14...v1.5.16) - Support mongo connection string ## [v1.5.14](https://github.com/adrai/node-viewmodel/compare/v1.5.13...v1.5.14)