From f79c768e6cd20cff1f7a78ba559c4fbd06c71bdb Mon Sep 17 00:00:00 2001 From: Onja Date: Mon, 22 Apr 2024 14:59:38 +0000 Subject: [PATCH] Little fix and activate email --- src/subscribers/emailSubscriber.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/subscribers/emailSubscriber.js b/src/subscribers/emailSubscriber.js index 3053a13..df5c6f9 100644 --- a/src/subscribers/emailSubscriber.js +++ b/src/subscribers/emailSubscriber.js @@ -65,7 +65,6 @@ module.exports = (app) => { } }; - return null const response = await axios.post(defaultParams.url, data, { headers: defaultParams.headers }); return response; } @@ -91,7 +90,7 @@ module.exports = (app) => { // Create a new listener for the parse.error event emitter.on('parse.error', async ({ filepath, columns, error }) => { try { - const reponse = await sendEmail(sendgridParams.to, 'BODACC - Erreur traitement', '

Erreur traitement


Voici le message d\'erreur: ' + error + '

') + const response = await sendEmail(sendgridParams.to, 'BODACC - Erreur traitement', '

Erreur traitement


Voici le message d\'erreur: ' + error + '

') emitter.emit('mailer.parse.error.success', { response: response }); } catch (error) { emitter.emit('mailer.parse.error.error', { error: errorResponse(error) });