mail-time
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -165,4 +165,4 @@ const JoSk = require('josk'); | ||
this.collection = opts.db.collection('__mailTimeQueue__' + this.prefix); | ||
this.collection.createIndex({ to: 1, isSent: 1, sendAt: 1 }, (indexError) => { | ||
this.collection = opts.db.collection(`__mailTimeQueue__${this.prefix}`); | ||
this.collection.createIndex({ isSent: 1, to: 1, sendAt: 1 }, (indexError) => { | ||
if (indexError) { | ||
@@ -172,3 +172,3 @@ _logError('[createIndex]', indexError); | ||
}); | ||
this.collection.createIndex({ sendAt: 1, isSent: 1, tries: 1 }, { background: true }, (indexError) => { | ||
this.collection.createIndex({ isSent: 1, sendAt: 1, tries: 1 }, { background: true }, (indexError) => { | ||
if (indexError) { | ||
@@ -175,0 +175,0 @@ _logError('[createIndex]', indexError); |
{ | ||
"name": "mail-time", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Bulletproof email queue on top of NodeMailer for a single and multi-server setups", | ||
@@ -55,10 +55,10 @@ "main": "index.js", | ||
"devDependencies": { | ||
"bson": "^4.6.4", | ||
"bson-ext": "^4.0.2", | ||
"bson": "^4.7.0", | ||
"bson-ext": "^4.0.3", | ||
"chai": "^4.3.6", | ||
"mocha": "^10.0.0", | ||
"mongodb": "^4.7.0", | ||
"nodemailer": "^6.7.6", | ||
"mongodb": "^4.10.0", | ||
"nodemailer": "^6.7.8", | ||
"nodemailer-direct-transport": "^3.0.7" | ||
} | ||
} |
45031