emailer should actually email

This commit is contained in:
Martin Donnelly 2016-04-12 09:16:21 +01:00
parent d4949326e3
commit bce7f56b31
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;