@condor-labs/mongodb
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@condor-labs/mongodb", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "This module provide and usefull helper to use mongoose library.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -107,4 +107,4 @@ 'use strict'; | ||
}, | ||
getClient: (skipConnection = false) => { | ||
if (skipConnection) { | ||
getClient: (tryToConnect = true) => { | ||
if (!tryToConnect) { | ||
self._client = require('mongoose'); | ||
@@ -111,0 +111,0 @@ } else if (!self._isConnected() || !self._client) { |
15927