From e96bdc245874dc22248afd026386c29600c55e35 Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 29 Nov 2020 02:41:01 +0200 Subject: [PATCH] sync --- swarmlab-app/src/run/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 1e87e54..efe73d0 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -466,8 +466,7 @@ function onCollection(err, collection) { reslog.log = data var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"") - (async() => { - await pubClient.get(issend, function(err, object) { + pubClient.get(issend, function(err, object) { if(object){ pubClient.set(issend, itemsProcessed, function(err, res) { io.in(user1).emit("logdata", reslog); @@ -476,7 +475,6 @@ function onCollection(err, collection) { io.in(user1).emit("logdata", reslog); } }); - })() //await inside yes //io.in(user1).emit("logdata", reslog); //console.log(' --- '+ JSON.stringify(reslog))