Skip to content
Snippets Groups Projects
Commit bbeb3fdc authored by Rémi PAPIN's avatar Rémi PAPIN
Browse files

Merge branch 'features/US248-welcome-mail' into 'dev'

Add montlyReport mail

See merge request web-et-numerique/llle_project/ecolyo!120
parents 29a4fa93 6433320e
No related branches found
No related tags found
1 merge request!120Add montlyReport mail
......@@ -25,7 +25,7 @@
"monthlyReportNotification": {
"type": "node",
"file": "services/monthlyReportNotification/ecolyo.js",
"trigger": "@cron 0 0 * * * *"
"trigger": "@cron 0 0 10 3 * *"
}
},
"permissions": {
......
This diff is collapsed.
This diff is collapsed.
......@@ -107,13 +107,14 @@ const monthlyReportNotification = async ({
}
log('info', 'Creation of mail...')
const mailContent = createEmail(
username,
url,
periodLabel,
monthlyPerformance
)
const mailService = new MailService()
// const mailContent = createEmail(
// username,
// url,
// periodLabel,
// monthlyPerformance
// )
const mailContent = mailService.CreateBodyMonthlyReport(username, url)
const mailData = {
mode: 'noreply',
subject: '[Ecolyo] - Votre bilan mensuel',
......@@ -125,7 +126,6 @@ const monthlyReportNotification = async ({
],
}
log('info', 'Sending mail...')
const mailService = new MailService()
mailService.SendMail(client, mailData)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment