From 0c1cecd61bea22de9a3ad66475adc34bee0ddb1c Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 29 Nov 2020 02:50:51 +0200 Subject: [PATCH] sync --- swarmlab-app/src/run/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index efe73d0..6a6813c 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -466,12 +466,15 @@ function onCollection(err, collection) { reslog.log = data var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"") + console.log(' ---get '+ JSON.stringify(reslog)) pubClient.get(issend, function(err, object) { if(object){ + console.log(' ---set '+ JSON.stringify(reslog)) pubClient.set(issend, itemsProcessed, function(err, res) { io.in(user1).emit("logdata", reslog); }); }else{ + console.log(' ---isset '+ JSON.stringify(reslog)) io.in(user1).emit("logdata", reslog); } });