native-mongo-util
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -181,4 +181,8 @@ const Log = require('logger3000').getLogger(__filename); | ||
*/ | ||
exports.close = force => { | ||
return _defaultConnection.close(force); | ||
exports.close = async force => { | ||
const result = await _defaultConnection.close(force); | ||
// eslint-disable-next-line require-atomic-updates | ||
_defaultConnection = null; | ||
return result; | ||
}; | ||
@@ -185,0 +189,0 @@ |
{ | ||
"name": "native-mongo-util", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11350
227