25 lines
787 B
JavaScript
25 lines
787 B
JavaScript
/**
|
|
*
|
|
* User: Martin Donnelly
|
|
* Date: 2016-10-23
|
|
* Time: 23:22
|
|
*
|
|
*/
|
|
const calHandler = require('./calHandler');
|
|
const logger = require('log4js').getLogger();
|
|
|
|
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);
|
|
});
|
|
} |