Skip to content

Commit

Permalink
fix(codes): fix mailer template breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
serge1peshcoff committed May 3, 2019
1 parent a9453c9 commit 589f490
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ exports.isNumber = (value) => {
};

exports.getMailText = ({ code, integration, user}) => {
return `Hey ${user.first_name},
You've claimed the code for the discount, here are the details.
Partner: ${integration.name}
Code: ${code.value}
Claimed on: ${moment(code.created_at).format('YYYY-MM-DD HH:MM')}
${integration.description}
Sincerely yours,
return `Hey ${user.first_name},<br/>
<br/>
You've claimed the code for the discount, here are the details.<br/>
<br/>
Partner: ${integration.name}<br/>
Code: ${code.value}<br/>
Claimed on: ${moment(code.created_at).format('YYYY-MM-DD HH:MM')}<br/>
<br/>
${integration.description}<br/>
<br/>
Sincerely yours,<br/>
MyAEGEE discounts team.`
};

Expand Down

0 comments on commit 589f490

Please sign in to comment.