Skip to content
Snippets Groups Projects

chore(mails): enable mails in local

Merged Bastien DUMONT requested to merge chore/enable-mails-on-local into dev
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -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: [
{
{
Loading