Commit 9acff077 authored by git-directory-deploy's avatar git-directory-deploy
Browse files

publish: a

generated from commit 6654b9fe
parent 7b81c2b0
......@@ -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)
}
Supports Markdown
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