From 5c5e45c13161d537d47909a166c26753f7f36e5c Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 28 Nov 2020 15:37:22 +0200 Subject: [PATCH] async --- swarmlab-app/src/run/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 326ac9f..f563d0a 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -455,6 +455,7 @@ function onCollection(err, collection) { } console.log('update '+JSON.stringify(indexupdate)); if (indexupdate == "yes" ){ + (async() => { var token = "d2539e5a7ae1f9f1b0eb2b8f22ca467a86d28407"; // desto var resdata = await getpipelines(token,pathfile) resob.pathlogfile = pathfileval @@ -483,6 +484,7 @@ function onCollection(err, collection) { } itemsProcessed++; }); + })() //await inside yes }else{ await pubClient.get(pathfileval, function(err, object) { var objecttmp = JSON.parse(object);