wingbot-mongodb
Advanced tools
Comparing version 2.21.6 to 2.21.7
{ | ||
"name": "wingbot-mongodb", | ||
"version": "2.21.6", | ||
"version": "2.21.7", | ||
"description": "MongoDB storage for wingbot.ai", | ||
@@ -5,0 +5,0 @@ "main": "src/main.js", |
@@ -103,2 +103,13 @@ /** | ||
this._collections = new Map(); | ||
if (isCosmo && !process.argv.some((a) => a.endsWith('mocha'))) { | ||
process.nextTick(() => { | ||
Promise.all([ | ||
this._getCollection(this.taksCollection), | ||
this._getCollection(this.campaignsCollection), | ||
this._getCollection(this.subscribtionsCollection) | ||
]) | ||
.catch((e) => log.error('DB.<NotificationsStorage> index pre-heat FAILED', e)); | ||
}); | ||
} | ||
} | ||
@@ -105,0 +116,0 @@ |
241928
2179