mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
got my email null check the wrong way around
This commit is contained in:
parent
e433eca157
commit
9ae85abb74
1 changed files with 2 additions and 2 deletions
|
@ -5,9 +5,9 @@ metrics = require("../../infrastructure/Metrics")
|
|||
ses = require('node-ses')
|
||||
|
||||
if Settings.email? and Settings.email.fromAddress?
|
||||
defaultFromAddress = ""
|
||||
else
|
||||
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 != ""
|
||||
client = ses.createClient({ key: Settings.email.ses.key, secret: Settings.email.ses.secret });
|
||||
|
|
Loading…
Reference in a new issue