fix: UI stuff and mailgun typos

This commit is contained in:
Rafael Taranto 2023-12-15 11:59:38 +00:00
parent 142f86c85c
commit 3221a7a828
13 changed files with 75 additions and 13 deletions

View file

@ -4,7 +4,7 @@ const NAME = 'Mailgun'
function sendMessage ({apiKey, domain, fromEmail, toEmail}, rec) {
const mailgun = Mailgun({apiKey, domain})
const to = req.email.toEmail ?? toEmail
const to = rec.email.toEmail ?? toEmail
const emailData = {
from: `Lamassu Server ${fromEmail}`,
@ -18,7 +18,7 @@ function sendMessage ({apiKey, domain, fromEmail, toEmail}, rec) {
function sendCustomerMessage ({apiKey, domain, fromEmail}, rec) {
const mailgun = Mailgun({apiKey, domain})
const to = req.email.toEmail
const to = rec.email.toEmail
const emailData = {
from: fromEmail,