diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-05-13 20:49:40 +0200 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-05-13 20:49:40 +0200 |
| commit | 42acd1a513dcdaad2dddd5892be94212f4c58fad (patch) | |
| tree | fca93298640e491e94f1895efa16a0562d6096af /lib | |
| parent | 9ac9c4ed23dfa8a0740852192e4b414e8cd4df7b (diff) | |
hash
Diffstat (limited to 'lib')
| -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){ |
