From 42acd1a513dcdaad2dddd5892be94212f4c58fad Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 13 May 2017 20:49:40 +0200 Subject: hash --- lib/awmail/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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){ -- cgit v1.2.3-70-g09d2