Skip to content

Commit

Permalink
main: that's it
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidd6 committed Jul 13, 2021
1 parent 47d3268 commit a1ab281
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
return files.map(f => ({ path: f }))
}

async function main() {
Expand Down Expand Up @@ -73,8 +73,6 @@ async function main() {
} : undefined,
})

console.log(await getAttachments(attachments))

const info = await transport.sendMail({
from: getFrom(from, username),
to: to,
Expand Down

0 comments on commit a1ab281

Please sign in to comment.