|
|
@ -465,22 +465,23 @@ function onCollection(err, collection) { |
|
|
|
if(object){ |
|
|
|
reslog.log = data |
|
|
|
var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"") |
|
|
|
/* |
|
|
|
|
|
|
|
(async() => { |
|
|
|
await pubClient.get(issend, function(err, object) { |
|
|
|
if(object){ |
|
|
|
}else{ |
|
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
|
io.in(user1).emit("logdata", reslog); |
|
|
|
io.in(user1).emit("logdata", reslog); |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
io.in(user1).emit("logdata", reslog); |
|
|
|
} |
|
|
|
}); |
|
|
|
})() //await inside yes
|
|
|
|
*/ |
|
|
|
io.in(user1).emit("logdata", reslog); |
|
|
|
console.log(' --- '+ JSON.stringify(reslog)) |
|
|
|
|
|
|
|
//io.in(user1).emit("logdata", reslog);
|
|
|
|
//console.log(' --- '+ JSON.stringify(reslog))
|
|
|
|
//console.log(' --->> '+ JSON.stringify(user1))
|
|
|
|
console.log(user1) |
|
|
|
//console.log(user1)
|
|
|
|
}else{ |
|
|
|
(async() => { |
|
|
|
var token = "d2539e5a7ae1f9f1b0eb2b8f22ca467a86d28407"; // desto
|
|
|
|