From e0c0897f19837f3da49cbf46790ce3664d5d38cd Mon Sep 17 00:00:00 2001 From: zeus Date: Mon, 23 Nov 2020 02:46:53 +0200 Subject: [PATCH] watcher --- swarmlab-app/src/run/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 65bf17e..840d81f 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -208,9 +208,10 @@ global.pipelines=[]; var resdata = await getpipelines(token,pathfile) //console.log('info-------->>>>>>>>>>>> ', JSON.stringify(resdata)); //console.log('info----------------------- ', JSON.stringify(resdata.data)); - //resdata.data.pathlogfile = pathfile - resdata.data.pathlogfile = 'test' - var resob = resdata.data + //resdata.data.pathlogfile = 'test' + var resob = {} + resob.pathlogfile = pathfileval + resob.data = resdata.data var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data.res25swarmlabname); //indexfind === -1 ? global.pipelines.push({resob}) : console.log("object already exists")