adding comma separation for MailJet & Sendgrid | fixing immowelt | upgrading dependencies (#34)

This commit is contained in:
Christian Kellner
2021-10-06 10:45:13 +02:00
committed by GitHub
parent 8d93581dfc
commit ec986e4b18
10 changed files with 827 additions and 536 deletions

View File

@@ -14,7 +14,10 @@ exports.send = ({ serviceName, newListings, notificationConfig, jobKey }) => {
sgMail.setApiKey(apiKey);
const msg = {
templateId,
to: receiver,
to: receiver
.trim()
.split(',')
.map((r) => r.trim()),
from,
subject: `Job ${jobKey} | Service ${serviceName} found ${newListings.length} new listing(s)`,
dynamic_template_data: {