Browse Source

watcher

master
zeus 4 years ago
parent
commit
757bf9a90f
  1. 6
      swarmlab-app/src/run/app.js

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

@ -205,9 +205,9 @@ global.online='ob';
(async() => {
var token = "d2539e5a7ae1f9f1b0eb2b8f22ca467a86d28407"; // desto
var resdata = await getpipelines(token,pathfile)
console.log('info----------------------- ', JSON.stringify(resdata.info));
var resob = resdata.info.data
var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.info.data.res25swarmlabname);
console.log('info----------------------- ', JSON.stringify(resdata.data));
var resob = resdata.data
var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data.res25swarmlabname);
indexfind === -1 ? global.pipelines.push({resob}) : console.log("object already exists")

Loading…
Cancel
Save