From bce7f56b31472f09fee87ba7bc331f2dc9be8383 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Tue, 12 Apr 2016 09:16:21 +0100 Subject: [PATCH] emailer should actually email --- lib/jade/today.jade | 2 +- lib/today.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/jade/today.jade b/lib/jade/today.jade index 7f0281b..ca40f52 100644 --- a/lib/jade/today.jade +++ b/lib/jade/today.jade @@ -37,7 +37,7 @@ html(lang="en") p !{line.combined} .fitbit h2 Fitbit - p Yesterday you walked #{data.fitbit.summary.steps} steps and moved #{data.fitbit.summary.distances[0].distance} km. + p Yesterday you walked #{data.fitbit.summary.steps} steps and covered #{data.fitbit.summary.distances[0].distance} km. .swedish h2 Word of the day p(style="font-weight:900;")= data.swedish.xml.words.word diff --git a/lib/today.js b/lib/today.js index 66efe40..7088378 100644 --- a/lib/today.js +++ b/lib/today.js @@ -247,8 +247,8 @@ setTimeout(function() { module.exports.preLoadToday(); }, 5000); setTimeout(function() { -// mdMailer.sendEmailV1(todayCache, __dirname); - saveToDB(todayCache); + // mdMailer.sendEmailV1(todayCache, __dirname); + // saveToDB(todayCache); }, 45000); cron.schedule('45 6 * * *', function() { module.exports.preLoadToday(); @@ -259,7 +259,7 @@ cron.schedule('0 */1 * * *', function() { return -1; }); cron.schedule('0 7 * * *', function() { - mdMailer.sendEmailV1(); + mdMailer.sendEmailV1(todayCache, __dirname); saveToDB(todayCache); // Console.log('tick'); return -1;