|
@ -211,8 +211,8 @@ global.pipelines=[]; |
|
|
//resdata.data.pathlogfile = 'test'
|
|
|
//resdata.data.pathlogfile = 'test'
|
|
|
var resob = {} |
|
|
var resob = {} |
|
|
resob.pathlogfile = pathfileval |
|
|
resob.pathlogfile = pathfileval |
|
|
resob.data = resdata.data.res25swarmlabname |
|
|
resob.data = resdata.data[0].res25swarmlabname |
|
|
var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data.res25swarmlabname); |
|
|
var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data[0].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") |
|
|
indexfind === -1 ? global.pipelines.push(resob) : console.log("object already exists") |
|
|