wingbot-mongodb
Advanced tools
Comparing version 3.2.3 to 3.2.4
{ | ||
"name": "wingbot-mongodb", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"description": "MongoDB storage for wingbot.ai", | ||
@@ -5,0 +5,0 @@ "main": "src/main.js", |
@@ -333,3 +333,2 @@ /** | ||
} | ||
} | ||
@@ -346,3 +345,5 @@ | ||
.catch((e) => { | ||
if (e.code !== 11000) { | ||
if (e.code === 11000) { | ||
this._log.log(`DB.${this._collectionName} fixture not inserted: ${e.message}`); | ||
} else { | ||
this._log.error(`DB.${this._collectionName} failed to insert fixture doc to "${this._collectionName}"`, e); | ||
@@ -349,0 +350,0 @@ } |
265447
2352