diff --git a/index.js b/index.js index 37042de..f49e89c 100644 --- a/index.js +++ b/index.js @@ -155,9 +155,10 @@ function sendSMTP(data, newPath) { const html = pug.renderFile( `${newPath }/` + 'pug/email.pug', data); email({ - 'from': 'aida@caliban.io', - 'to': 'martind2000@gmail.com', - 'subject': `Suggestions - ${ dateFormat(now, 'dddd, mmmm dS, yyyy')}`, + 'from': 'Aida ', + 'to': 'Aida ', + 'bcc': 'Martin , Jessica ', + 'subject': `Suggestions 🍳 - ${ dateFormat(now, 'dddd, mmmm dS, yyyy')}`, 'html': html }); } @@ -197,9 +198,10 @@ function doJob() { logger.debug(`Done:${data.ts}`); } -/* (function() { - doJob(); -}());*/ +(function() { + // doJob(); + logger.info('Menuizer started'); +}()); cron.schedule('0 8 * * 6', function () { doJob();