Skip to content

Commit

Permalink
small fix on email api config
Browse files Browse the repository at this point in the history
  • Loading branch information
ntraut committed Mar 31, 2023
1 parent 010ce63 commit 024cec8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ SMTP_HOST=xxxxxx
SMTP_PORT=587
SMTP_USER=xxxxxx
SMTP_PASS=xxxxxx
[email protected]
7 changes: 0 additions & 7 deletions src/middleware/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ module.exports = (parseCloudEvent) => {
},
// eslint-disable-next-line require-await
apiCallback: async ({ payload }) => {
// eslint-disable-next-line no-unused-vars
const mailOptions = {
from: payload.from,
to: payload.to,
subject: payload.subject,
text: payload.text
};
try {
await transporter.sendMail(payload)
console.log('email sent');
Expand Down

0 comments on commit 024cec8

Please sign in to comment.