Skip to content
Snippets Groups Projects
Commit cf69534d authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

Merge branch 'chore/enable-mails-on-local' into 'dev'

chore(mails): enable mails in local

See merge request !1251
parents 5a99a4cf eb175779
Branches
No related tags found
1 merge request!1251chore(mails): enable mails in local
...@@ -204,6 +204,7 @@ const monthlyReportNotification = async ({ ...@@ -204,6 +204,7 @@ const monthlyReportNotification = async ({
logStack('info', 'Creation of mail...') logStack('info', 'Creation of mail...')
const mailService = new MailService() const mailService = new MailService()
const envService = new EnvironmentService()
const today = DateTime.local().setZone('utc', { const today = DateTime.local().setZone('utc', {
keepLocalTime: true, keepLocalTime: true,
...@@ -290,7 +291,7 @@ const monthlyReportNotification = async ({ ...@@ -290,7 +291,7 @@ const monthlyReportNotification = async ({
}) })
const mailData = { const mailData = {
mode: 'campaign', mode: envService.isProduction() ? 'campaign' : 'noreply',
subject: monthlyReport.subject, subject: monthlyReport.subject,
parts: [ parts: [
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment