silvrgit/lib/today/test.js

25 lines
787 B
JavaScript
Raw Normal View History

2016-10-23 22:52:59 +00:00
/**
*
* User: Martin Donnelly
* Date: 2016-10-23
* Time: 23:22
*
*/
2017-04-05 13:22:31 +00:00
const calHandler = require('./calHandler');
const logger = require('log4js').getLogger();
2016-10-23 22:52:59 +00:00
2017-04-05 13:22:31 +00:00
for (let t = 0; t < calHandler.calendars.length; t++) {
calHandler.getAdvancedCalV3(calHandler.calendars[t])
.then((d) => {
'use strict';
/*
todayCache.data.cal.today = todayCache.data.cal.today.concat(d.today);
todayCache.data.cal.tomorrow = todayCache.data.cal.tomorrow.concat(d.tomorrow);
todayCache.data.cal.week = todayCache.data.cal.week.concat(d.week);
*/
})
.catch((e) => {
'use strict';
logger.error(e);
});
}