diff options
| -rw-r--r-- | lib/awmail/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/awmail/index.js b/lib/awmail/index.js index f5ed12b..e315f4d 100644 --- a/lib/awmail/index.js +++ b/lib/awmail/index.js @@ -46,7 +46,7 @@ function AWMail (options) { var track = req.body.track var secret = req.body.secret - if (! hash || secret !== config.secret) { + if (secret !== config.secret) { return res.sendStatus(500) } @@ -55,11 +55,11 @@ function AWMail (options) { return uploadImage({ file: req.file, }) - }).then(function(){ + }).then(function(url){ console.log("parse templates") + console.log(url) var templateData = { email: email, - hash: hash, } return parseTemplates(templateData) }).then(function(mailData){ |
