Skip to content

Commit

Permalink
fix /tmp/ prefix in lambda email attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuali925 committed Feb 5, 2024
1 parent 861b7ea commit 40d429b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/email-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const getmailOptions = (url, sender, recipient, file, emailSubject, note, emailb
cid: 'opensearch_logo_darkmode'
},
{
filename: file,
filename: path.basename(file),
path: file
}],
template: 'index',
Expand All @@ -126,4 +126,4 @@ function deleteTemporaryImage(emailbody) {
if (fs.existsSync(emailbody)) {
fs.unlinkSync(emailbody);
}
}
}

0 comments on commit 40d429b

Please sign in to comment.