Commit 6654b9fe authored by Hugo's avatar Hugo
Browse files

a

parent a28832e5
......@@ -141,11 +141,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)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment