Browse Source

watcher

master
zeus 4 years ago
parent
commit
22ff676f41
  1. 3
      swarmlab-app/src/run/app.js

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

@ -211,7 +211,8 @@ global.pipelines=[];
var resob = resdata.data var resob = resdata.data
var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data.res25swarmlabname); var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data.res25swarmlabname);
indexfind === -1 ? global.pipelines.push({resob}) : console.log("object already exists") //indexfind === -1 ? global.pipelines.push({resob}) : console.log("object already exists")
indexfind === -1 ? global.pipelines.push(resob) : console.log("object already exists")
//console.log('info', JSON.stringify(resdata)); //console.log('info', JSON.stringify(resdata));
console.log('info------------- ', JSON.stringify(global.pipelines)); console.log('info------------- ', JSON.stringify(global.pipelines));

Loading…
Cancel
Save