fix json error910
This commit is contained in:
@ -144,9 +144,9 @@ app.post('/csv', (req, res, next) => {
|
||||
fs.createReadStream(path)
|
||||
.pipe(parse({ delimiter: ",", from_line: 2 }))
|
||||
.on("data", function (row) {
|
||||
for(r in row){
|
||||
console.log("--- r-0 ----", r);
|
||||
if(r[0] === _userEmail){
|
||||
for (i = 0; i < row.length; ++i){
|
||||
console.log("--- r-0 ----", row[i][0]);
|
||||
if(row[i][0] === _userEmail){
|
||||
_res = r[2];
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user