Browse Source

redis

master
zeus 4 years ago
parent
commit
b53695b88f
  1. 5
      swarmlab-app/src/run/app.js

5
swarmlab-app/src/run/app.js

@ -440,8 +440,9 @@ function onCollection(err, collection) {
console.log('file2222222222222222222222222222222222222------------------------------ ' + JSON.stringify(resdata.data)) console.log('file2222222222222222222222222222222222222------------------------------ ' + JSON.stringify(resdata.data))
resob.pathlogfile = pathfileval resob.pathlogfile = pathfileval
var resobarray = [] var resobarray = []
for (let i in resdata.data) { //for (let i in resdata.data) {
var resob1 = {} var resob1 = {}
var i = 0
resob1.data = resdata.data[i].res25swarmlabname resob1.data = resdata.data[i].res25swarmlabname
resob1.user25user = resdata.data[i].res25user resob1.user25user = resdata.data[i].res25user
resob1.res25creator = resdata.data[i].res25creator resob1.res25creator = resdata.data[i].res25creator
@ -453,7 +454,7 @@ function onCollection(err, collection) {
pubClient.hgetall(pathfileval, function(err, object) { pubClient.hgetall(pathfileval, function(err, object) {
console.log('redis>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(object)); console.log('redis>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+JSON.stringify(object));
}); });
} //}
resob.data = resobarray resob.data = resobarray
//var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data[0].res25swarmlabname); //var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data[0].res25swarmlabname);
//var indexfind = global.pipelines.findIndex(x => x.pathlogfile==pathfileval); //var indexfind = global.pipelines.findIndex(x => x.pathlogfile==pathfileval);

Loading…
Cancel
Save