diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index f563d0a..9e4f6cf 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -486,6 +486,7 @@ function onCollection(err, collection) { }); })() //await inside yes }else{ + (async() => { await pubClient.get(pathfileval, function(err, object) { var objecttmp = JSON.parse(object); var resob1 = {} @@ -511,6 +512,7 @@ function onCollection(err, collection) { itemsProcessed++; }); }); + })() //await inside no } }); //redis get })() //async