replace hard-coded email address with env var for the remaining files

This commit is contained in:
Hongbo Wu
2022-07-21 23:05:10 +08:00
committed by Jackson Harper
parent a87f75f319
commit 4c75260229
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export class ContentDisplayReportSubscriber
to: env.sender.feedback,
subject: 'New content display report',
text: message,
from: 'msgs@omnivore.app',
from: env.sender.message,
})
}
}

View File

@ -102,7 +102,7 @@ export function remindersServiceRouter() {
console.log('dynamic template data:', dynamicTemplateData)
await sendEmail({
from: 'msgs@omnivore.app',
from: env.sender.message,
dynamicTemplateData: dynamicTemplateData,
templateId: process.env.SENDGRID_REMINDER_TEMPLATE_ID,
to: user.email,