diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 95b7d5b..8cb5a34 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -275,8 +275,8 @@ cors(corsOptions), (req, res, next) => { console.log("mongo "+JSON.stringify(req.body)); console.log("LOG "+JSON.stringify(req.body[0].message)); console.log("PATH "+JSON.stringify(req.body[0].tailed_path)); - var getpath = await onlogfile(req.body[0].tailed_path) for (var i = 0; i < req.body.length; i++){ + var getpath = await onlogfile(req.body[i].tailed_path) var obj = req.body[i]; //var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.data.res25swarmlabname);