diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 8391049..d45340a 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -507,7 +507,7 @@ function onCollection(err, collection) { var user = resob1.res25creator //io.in(user).emit("logdata", reslog); //var user = 'anagnostopoulos@uniwa.gr' - (async() => { + (async(io,issend) => { await pubClient.get(issend, function(err, object) { if(err == null){ pubClient.set(issend, itemsProcessed, function(err, res) { @@ -516,7 +516,7 @@ function onCollection(err, collection) { } itemsProcessed++; }); - })(io) //await + })(io,issend) //await }); })() //await inside no }