This commit is contained in:
Matteo Pagliazzi
2015-04-07 16:07:52 +02:00
parent d21fb41aef
commit f12f2b201a
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -73,8 +73,8 @@ module.exports.txnEmail = function(mailingInfoArray, emailType, variables, perso
});
// Personal variables are personal to each email recipient, if they are missing
// we manually create a structure for them with RECIPIENT_NAME and RECIPIENT_ID
// otherwise we just add RECIPIENT_NAME and RECIPIENT_ID to the existing personal variables
// we manually create a structure for them with RECIPIENT_NAME and RECIPIENT_UNSUB_URL
// otherwise we just add RECIPIENT_NAME and RECIPIENT_UNSUB_URL to the existing personal variables
if(!personalVariables || personalVariables.length === 0){
personalVariables = mailingInfoArray.map(function(mailingInfo){
return {