Browse Source

add rest

master
zeus 4 years ago
parent
commit
94a7161638
  1. 3
      swarmlab-app/src/run/app.js

3
swarmlab-app/src/run/app.js

@ -406,7 +406,8 @@ cors(corsOptions), (req, res, next) => {
console.log('------------------- ' + item[i].tailed_path) console.log('------------------- ' + item[i].tailed_path)
console.log('-----++++++++++++++++++++++++--- ' + nameofswarmlab) console.log('-----++++++++++++++++++++++++--- ' + nameofswarmlab)
if(resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab))){ if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab)).length > 0 ){
RES.lenght = resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab)).length
resdataarray.push(item[i]) resdataarray.push(item[i])
RES.found = item[i] RES.found = item[i]
} }

Loading…
Cancel
Save