|
@ -503,14 +503,16 @@ function onCollection(err, collection) { |
|
|
console.log('<<<<<<<<<<<---------------------<<<<<<<<<<<<<<<---------------------------<<<<<<<<<<<< '+JSON.stringify(object)); |
|
|
console.log('<<<<<<<<<<<---------------------<<<<<<<<<<<<<<<---------------------------<<<<<<<<<<<< '+JSON.stringify(object)); |
|
|
console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '+JSON.stringify(reslog)); |
|
|
console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< '+JSON.stringify(reslog)); |
|
|
var user = objecttmp.user25user |
|
|
var user = objecttmp.user25user |
|
|
await pubClient.get(issend, function(err, object) { |
|
|
(async() => { |
|
|
|
|
|
await pubClient.get(issend, function(err, object) { |
|
|
if(err == 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); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
itemsProcessed++; |
|
|
itemsProcessed++; |
|
|
}); |
|
|
}); |
|
|
|
|
|
})() //await
|
|
|
}); |
|
|
}); |
|
|
})() //await inside no
|
|
|
})() //await inside no
|
|
|
} |
|
|
} |
|
|