Add an empty transportsIndex to the mail connector by default
This commit is contained in:
parent
6bb0ba2d95
commit
7e1810a1ad
|
@ -18,7 +18,8 @@ module.exports = MailConnector;
|
||||||
function MailConnector(settings) {
|
function MailConnector(settings) {
|
||||||
assert(typeof settings === 'object', 'cannot initiaze MailConnector without a settings object');
|
assert(typeof settings === 'object', 'cannot initiaze MailConnector without a settings object');
|
||||||
var transports = settings.transports || [];
|
var transports = settings.transports || [];
|
||||||
|
this.transportsIndex = {};
|
||||||
|
|
||||||
transports.forEach(this.setupTransport.bind(this));
|
transports.forEach(this.setupTransport.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue