Skip to content

Commit

Permalink
feat(config): end mail config ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Apr 23, 2020
1 parent 7eee362 commit 28fd56a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/defaults/montaineDev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
},
Expand Down
3 changes: 1 addition & 2 deletions config/templates/api-failed-alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
<p>Dear Mr, Mrs,</p>
<p> You have configured to be alerted if <b>{{apiTitle}}</b> api call failed.</p>
<pre style='background: #f5f2f0; color:#72972c; padding: 15px; border-radius: 7px;'>{{result}}</pre>
<br />
<p>More informations <a href="{{link}}">here</a>.</p>
<br />
<p>The {{appName}} Support Team.</p>
<br/>
<i style='color:#9b9b9b'>Please do not reply to this email, you can contact us here {{appContact}}.</i>
<i style='color:#9b9b9b'>Please do not reply to this email, you can contact us <a href="mailto:{{appContact}}">here</a>.</i>
</body>

</html>
2 changes: 1 addition & 1 deletion lib/helpers/montaineRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
},
});
Expand Down

0 comments on commit 28fd56a

Please sign in to comment.