From 3b93c38b0681a09d107fede3d2e5b131ac6b023a Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 11 Dec 2020 00:06:45 +0200 Subject: [PATCH] add rest --- 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 0c004b4..b35494a 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -417,7 +417,7 @@ cors(corsOptions), (req, res, next) => { //if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab)).length > 0 ){ var regexlog = new RegExp(nameofswarmlab); //const res = data.filter(item => item.Date.indexOf(filterKey) === 0); - if( resdata.data.filter(item1 => regexlog.test(item1.res25swarmlabname))){ + if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab) )){ console.log('----->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--- ' + nameofswarmlab) console.log('-----oooooooooooooooooooooo--- ' + item[i]) resdataarray.push(item[i])