|
@ -474,7 +474,7 @@ function onCollection(err, collection) { |
|
|
console.log('datauser ' + JSON.stringify(user)); |
|
|
console.log('datauser ' + JSON.stringify(user)); |
|
|
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(reslog)); |
|
|
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(reslog)); |
|
|
pubClient.get(issend, function(err, object) { |
|
|
pubClient.get(issend, function(err, object) { |
|
|
if(ocject == null){ |
|
|
if(err == null){ |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
io.in(user).emit("logdata", reslog); |
|
|
io.in(user).emit("logdata", reslog); |
|
|
}); |
|
|
}); |
|
@ -502,7 +502,7 @@ function onCollection(err, collection) { |
|
|
//io.join(user);
|
|
|
//io.join(user);
|
|
|
//io.to(user).emit(reslog);
|
|
|
//io.to(user).emit(reslog);
|
|
|
pubClient.get(issend, function(err, object) { |
|
|
pubClient.get(issend, function(err, object) { |
|
|
if(ocject == null){ |
|
|
if(err == null){ |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
io.in(user).emit("logdata", reslog); |
|
|
io.in(user).emit("logdata", reslog); |
|
|
}); |
|
|
}); |
|
|