diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 3158bc5..c533929 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -393,15 +393,17 @@ cors(corsOptions), (req, res, next) => { db.collection('logs').find({}, {}).toArray() .then(item => { console.log(item) + /* for (let i in item) { reslab = item[i].message.app_name - if(resdata.data.filter(item1 => item1.res25swarmlabname.includes(reslab))){ + if(resdata.filter(item1 => item1.res25swarmlabname.includes(reslab))){ resdataarray.push(item[i]) } } + */ RES.error_msg = "ok" RES.data = item - RES.dataserver = resdataarray + RES.dataserver = resdata res.json(RES) }) .catch(err => {