From 28fd56a059a8d83961425a68ea13e92da8a68b9a Mon Sep 17 00:00:00 2001 From: Pierre Brisorgueil Date: Thu, 23 Apr 2020 10:19:01 +0200 Subject: [PATCH] =?UTF-8?q?feat(config):=20end=20mail=20config=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/defaults/montaineDev.js | 4 ++-- config/templates/api-failed-alert.html | 3 +-- lib/helpers/montaineRequest.js | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/defaults/montaineDev.js b/config/defaults/montaineDev.js index 5cc67a52..480b64e0 100644 --- a/config/defaults/montaineDev.js +++ b/config/defaults/montaineDev.js @@ -27,8 +27,8 @@ module.exports = _.merge(defaultConfig, { options: { service: 'gmail', auth: { - user: 'lou.worker@gmail.com', - pass: 'zmvhmfqjzuzftpth', + user: 'montaine.worker@gmail.com', + pass: 'pyicsdyqmfooayby', }, }, }, diff --git a/config/templates/api-failed-alert.html b/config/templates/api-failed-alert.html index ee305c14..d3425c8d 100644 --- a/config/templates/api-failed-alert.html +++ b/config/templates/api-failed-alert.html @@ -9,12 +9,11 @@

Dear Mr, Mrs,

You have configured to be alerted if {{apiTitle}} api call failed.

{{result}}
-

More informations here.


The {{appName}} Support Team.


- Please do not reply to this email, you can contact us here {{appContact}}. + Please do not reply to this email, you can contact us here. \ No newline at end of file diff --git a/lib/helpers/montaineRequest.js b/lib/helpers/montaineRequest.js index 40702d28..807cf141 100644 --- a/lib/helpers/montaineRequest.js +++ b/lib/helpers/montaineRequest.js @@ -89,7 +89,7 @@ exports.sendMailAlert = (data, api, history) => mails.sendMail({ result: JSON.stringify(data, null, 2), apiTitle: api.title, appName: config.app.title, - appContact: config.app.appContact, + appContact: config.app.contact, link: `${config.cors.origin}/historys/${history.id}`, }, });