diff --git a/index.js b/index.js index 1d1fd8bf2c665643e5bd3a3cd30871bb72d10668..61d65f9d5b7dad441311388a7b13cadccac14ec0 100644 --- a/index.js +++ b/index.js @@ -340,8 +340,8 @@ async function launchLoadDataProcess( 'com.grandlyon.enedis.minute', ['year', 'month', 'day', 'hour', 'minute'] ) - log('info', 'Agregate enedis load data for hour') - await agregateHourlyData(processedLoadData) + // log('info', 'Agregate enedis load data for hour') + // await agregateHourlyData(processedLoadData) } else { log('info', 'No consent or data for load curve') } @@ -559,7 +559,7 @@ async function isHistoryLoaded(doctype) { return ( el.year <= startLoadDate.year && el.month <= startLoadDate.month && - el.day <= startLoadDate.day + el.day <= startLoadDate.day-1 ) }) if (filtered.length > 0) {