From 5aedca59c27b2606f0f04b800a9296047745aeaa Mon Sep 17 00:00:00 2001 From: Robert Gargya Date: Wed, 3 Aug 2016 14:30:47 +0200 Subject: [PATCH] fix(database): add default value to options --- lib/database/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/database/index.js b/lib/database/index.js index 21600d5..528b9ba 100644 --- a/lib/database/index.js +++ b/lib/database/index.js @@ -2,7 +2,7 @@ class Database { - constructor(mongoose, uri, options) { + constructor(mongoose, uri, options = {}) { this._mongoose = mongoose; this._uri = uri; this._options = options;