From 993f304752513e6adaf9ce4dfe2750d3185de0a9 Mon Sep 17 00:00:00 2001 From: zeus Date: Thu, 10 Dec 2020 21:19:32 +0200 Subject: [PATCH] add rest --- swarmlab-app/src/run/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 30324c9..f009b36 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -398,14 +398,15 @@ cors(corsOptions), (req, res, next) => { for (let i in item) { reslab = item[i].message.app_name + RES.reslab = reslab if(resdata.data.filter(item1 => item1.res25swarmlabname.includes(reslab))){ resdataarray.push(item[i]) + RES.found = item[i] } } RES.error_msg = "ok" RES.data = item - RES.reslab = reslab RES.dataserver = resdataarray RES.dataservertmp = resdata res.json(RES)