Skip to content
Snippets Groups Projects
Commit 6654b9fe authored by Hugo's avatar Hugo
Browse files

a

parent a28832e5
No related branches found
No related tags found
1 merge request!4Dev
...@@ -141,11 +141,12 @@ async function agregateMonthAndYearData(data) { ...@@ -141,11 +141,12 @@ async function agregateMonthAndYearData(data) {
* Return an Array of agregated data * Return an Array of agregated data
*/ */
async function buildAgregatedData(data, doctype) { async function buildAgregatedData(data, doctype) {
log('info', 'entering buildAgregatedData')
let agregatedData = [] let agregatedData = []
for (let [key, value] of Object.entries(data)) { for (let [key, value] of Object.entries(data)) {
const data = await buildDataFromKey(doctype, key, value) const data = await buildDataFromKey(doctype, key, value)
const oldValue = await resetInProgressAggregatedData(data, doctype) 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 data.load += oldValue
agregatedData.push(data) agregatedData.push(data)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment