|
@ -417,9 +417,10 @@ cors(corsOptions), (req, res, next) => { |
|
|
//if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab)).length > 0 ){
|
|
|
//if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab)).length > 0 ){
|
|
|
var regexlog = new RegExp(nameofswarmlab); |
|
|
var regexlog = new RegExp(nameofswarmlab); |
|
|
//const res = data.filter(item => item.Date.indexOf(filterKey) === 0);
|
|
|
//const res = data.filter(item => item.Date.indexOf(filterKey) === 0);
|
|
|
if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab) )){ |
|
|
for (let ii in resdata.data) { |
|
|
console.log('----->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--- ' + nameofswarmlab) |
|
|
console.log(')))))))))))))))))))))))))))))))))))))))))) '+resdata.data[i].res25swarmlabname) |
|
|
console.log('-----oooooooooooooooooooooo--- ' + item[i]) |
|
|
if( regexlog.test(resdata.data[ii].res25swarmlabname) ){ |
|
|
|
|
|
console.log('-----oooooooooooooooooooooo--- ' + JSON.stringify(item[i])) |
|
|
resdataarray.push(item[i]) |
|
|
resdataarray.push(item[i]) |
|
|
RES.found = item[i] |
|
|
RES.found = item[i] |
|
|
}else{ |
|
|
}else{ |
|
@ -427,8 +428,6 @@ cors(corsOptions), (req, res, next) => { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
for (let i in resdata.data) { |
|
|
|
|
|
console.log(')))))))))))))))))))))))))))))))))))))))))) '+resdata.data[i].res25swarmlabname) |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
RES.error_msg = "ok" |
|
|
RES.error_msg = "ok" |
|
|