Comparing version 0.1.3 to 0.1.4
@@ -124,2 +124,7 @@ 'use strict'; | ||
if (options.appId) { | ||
message.appId = options.appId; | ||
delete options.appId; | ||
} | ||
if (!Array.isArray(message.options.to)) { | ||
@@ -137,3 +142,4 @@ message.options.to = [message.options.to]; | ||
status: 'queued', | ||
createdAt: message.createdAt | ||
createdAt: message.createdAt, | ||
html: message.options.html | ||
}); | ||
@@ -140,0 +146,0 @@ }); |
@@ -66,8 +66,8 @@ 'use strict'; | ||
mongoose.connection.on('error', function (err) { | ||
console.error('MongoDB connection error: ' + err); | ||
process.exit(-1); | ||
console.error('MongoDB connection error: ' + err); | ||
process.exit(-1); | ||
}); | ||
if (dbOptions.debug) { | ||
mongoose.set('debug', true); | ||
mongoose.set('debug', true); | ||
} | ||
@@ -141,3 +141,3 @@ } | ||
if (!callback) { | ||
if(!limit) { | ||
if (!limit) { | ||
callback = providerName; | ||
@@ -144,0 +144,0 @@ providerName = undefined; |
{ | ||
"name": "posteon", | ||
"description": " ", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "mailer", |
23363
850