fixing notification provider

This commit is contained in:
weakmap@gmail.com
2023-09-27 17:45:38 +02:00
parent fbad4456d7
commit 17b4bad2e4
8 changed files with 222 additions and 135 deletions

View File

@@ -9,7 +9,7 @@ const template = fs.readFileSync(path.resolve(__dirname + '/notification/emailTe
const emailTemplate = Handlebars.compile(template);
export const send = ({ serviceName, newListings, notificationConfig, jobKey }) => {
const { apiPublicKey, apiPrivateKey, receiver, from } = notificationConfig.find(
(adapter) => adapter.id === 'mailjet'
(adapter) => adapter.id === config.id,
).fields;
const to = receiver
.trim()