got my email null check the wrong way around

This commit is contained in:
Henry Oswald 2014-03-05 22:57:28 +00:00
parent e433eca157
commit 9ae85abb74

View file

@ -5,9 +5,9 @@ metrics = require("../../infrastructure/Metrics")
ses = require('node-ses') ses = require('node-ses')
if Settings.email? and Settings.email.fromAddress? if Settings.email? and Settings.email.fromAddress?
defaultFromAddress = ""
else
defaultFromAddress = Settings.email.fromAddress defaultFromAddress = Settings.email.fromAddress
else
defaultFromAddress = ""
if Settings.email?.ses? and Settings.email.ses?.key? and Settings.email.ses?.key != "" and Settings.email.ses?.secret? and Settings.email.ses?.secret != "" if Settings.email?.ses? and Settings.email.ses?.key? and Settings.email.ses?.key != "" and Settings.email.ses?.secret? and Settings.email.ses?.secret != ""
client = ses.createClient({ key: Settings.email.ses.key, secret: Settings.email.ses.secret }); client = ses.createClient({ key: Settings.email.ses.key, secret: Settings.email.ses.secret });