diff --git a/index.js b/index.js index e9f1862995539bcd7fd2f4b94e94f412289639ea..0e33b0d01320d339127d3f0105ba62df86116903 100644 --- a/index.js +++ b/index.js @@ -231,11 +231,12 @@ async function agregateMonthAndYearData(data) { * Return an Array of agregated data */ async function buildAgregatedData(data, doctype) { + log('info', 'entering buildAgregatedData') let agregatedData = [] for (let [key, value] of Object.entries(data)) { const data = await buildDataFromKey(doctype, key, value) const oldValue = await resetInProgressAggregatedData(data, doctype) - log("debug", "Dataload + oldvalue is " + data.load + " + " + oldValue + " -- makes dataload : " + (data.load += oldValue)) + log('info', 'Dataload + oldvalue is ' + data.load + ' + ' + oldValue) data.load += oldValue agregatedData.push(data) }