From a1ab281c6f0d7f7aac24bb671e75e7a739ab16c1 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Tue, 13 Jul 2021 18:38:35 +0200 Subject: [PATCH] main: that's it --- main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.js b/main.js index 62e35100..4514ddbb 100644 --- a/main.js +++ b/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 + return files.map(f => ({ path: f })) } async function main() { @@ -73,8 +73,6 @@ async function main() { } : undefined, }) - console.log(await getAttachments(attachments)) - const info = await transport.sendMail({ from: getFrom(from, username), to: to,