From 471b60733301c067a278cab89286e15a95d50918 Mon Sep 17 00:00:00 2001 From: zeus Date: Wed, 25 Nov 2020 12:50:43 +0200 Subject: [PATCH] redis --- 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 2c47c02..fb47330 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -424,7 +424,7 @@ async function onCollection(err, collection) { var indexupdate = true //var indexfind1 = global.pipelines.findIndex(x => x.pathlogfile==pathfileval); - await pubClient.hgetall(pathfileval, function(err, object) { + var tmp1 = await pubClient.hgetall(pathfileval, function(err, object) { if(object){ indexupdate = false }else{ @@ -450,7 +450,7 @@ async function onCollection(err, collection) { resobarray.push(resob1) var resob1string = JSON.stringify(resob1); pubClient.hmset(pathfileval,resob1string) - await pubClient.hgetall(pathfileval, function(err, object) { + var tmp2 = await pubClient.hgetall(pathfileval, function(err, object) { console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(object)); }); //}