From b563092144833ad069b634d25279973e22b5b4fc Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 27 Nov 2020 22:23:22 +0200 Subject: [PATCH] nginx --- swarmlab-app/src/run/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index c8372b8..ddb33a9 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -474,7 +474,7 @@ function onCollection(err, collection) { console.log('datauser ' + JSON.stringify(user)); console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(reslog)); pubClient.get(issend, function(err, object) { - if(ocject == null){ + if(err == null){ pubClient.set(issend, itemsProcessed, function(err, res) { io.in(user).emit("logdata", reslog); }); @@ -502,7 +502,7 @@ function onCollection(err, collection) { //io.join(user); //io.to(user).emit(reslog); pubClient.get(issend, function(err, object) { - if(ocject == null){ + if(err == null){ pubClient.set(issend, itemsProcessed, function(err, res) { io.in(user).emit("logdata", reslog); });