From eab380faa8b30654dbecd37ac8f83fd434f64fe1 Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 29 Nov 2020 17:39:06 +0200 Subject: [PATCH] prox --- 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 98e450a..5ca235a 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -473,12 +473,12 @@ async function iosend(data,issend,io,pubClient,user1){ reslog1.date = convertDateToUTC(now) var user = user1 - if(await getkey(issend)){ + if(getkey(issend)){ console.log(issend + ' ---1 '+ JSON.stringify(reslog1)) //io.in(user).emit("logdata", reslog1); }else{ console.log(issend + ' ---2 '+ JSON.stringify(reslog1)) - if (await setkey(issend,'1')){ + if (setkey(issend,'1')){ //pubClient.set(issend, '1', function(err, res) { //}); io.in(user).emit("logdata", reslog1);