From 589f4901d53a975f0ba4fa9034bd7ce36eca9ea8 Mon Sep 17 00:00:00 2001 From: Sergey Peshkov Date: Sat, 4 May 2019 01:22:27 +0300 Subject: [PATCH] fix(codes): fix mailer template breaking --- lib/helpers.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/helpers.js b/lib/helpers.js index b66406d9..2093c006 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -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},
+
+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,
MyAEGEE discounts team.` };