From 0efb4e14bcbd36cd39cb2d99141390318f869875 Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 24 Nov 2020 02:19:13 +0200 Subject: [PATCH] global --- swarmlab-app/src/run/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);