|
@ -466,8 +466,7 @@ function onCollection(err, collection) { |
|
|
reslog.log = data |
|
|
reslog.log = data |
|
|
var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"") |
|
|
var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"") |
|
|
|
|
|
|
|
|
(async() => { |
|
|
pubClient.get(issend, function(err, object) { |
|
|
await pubClient.get(issend, function(err, object) { |
|
|
|
|
|
if(object){ |
|
|
if(object){ |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
io.in(user1).emit("logdata", reslog); |
|
|
io.in(user1).emit("logdata", reslog); |
|
@ -476,7 +475,6 @@ function onCollection(err, collection) { |
|
|
io.in(user1).emit("logdata", reslog); |
|
|
io.in(user1).emit("logdata", reslog); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
})() //await inside yes
|
|
|
|
|
|
|
|
|
|
|
|
//io.in(user1).emit("logdata", reslog);
|
|
|
//io.in(user1).emit("logdata", reslog);
|
|
|
//console.log(' --- '+ JSON.stringify(reslog))
|
|
|
//console.log(' --- '+ JSON.stringify(reslog))
|
|
|