Skip to content

Commit

Permalink
fix /tmp/ prefix in lambda email attachment (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuali925 authored Feb 19, 2024
1 parent 8752e67 commit 917b5f8
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 917b5f8

Please sign in to comment.