mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-07-01 20:53:14 +07:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
4ef78fc181 |
2
main.js
2
main.js
@ -33,7 +33,7 @@ function getFrom(from, username) {
|
||||
async function getAttachments(attachments) {
|
||||
const globber = await glob.create(attachments.split(',').join('\n'))
|
||||
const files = await globber.glob()
|
||||
return files.map(f => ({ path: f }))
|
||||
return files.map(f => ({ path: f, cid: f.replace(/^.*[\\\/]/, '')}))
|
||||
}
|
||||
|
||||
async function main() {
|
||||
|
Reference in New Issue
Block a user