Added unique_id to the recipient data

no-issue

This will be required by mailgun
This commit is contained in:
Fabien O'Carroll 2019-11-08 10:58:10 +07:00
parent 2b285c5fd3
commit 00da426a02

View File

@ -19,6 +19,7 @@ const getEmailData = (post, members) => {
const emailData = membersToSendTo.reduce((emailData, member) => {
return Object.assign({
[member.email]: {
unique_id: member.uuid,
unsubscribe_url: createUnsubscribeUrl(member)
}
}, emailData);