update for id bug 27

This commit is contained in:
Mohamed Nouffer
2022-11-16 13:09:19 +05:30
parent e2ff39e902
commit 974569790c

View File

@ -145,7 +145,7 @@ app.post('/csv', (req, res, next) => {
fs.createReadStream(path) fs.createReadStream(path)
.pipe(parse({ delimiter: ",", from_line: 2 })) .pipe(parse({ delimiter: ",", from_line: 2 }))
.on("data", function (row) { .on("data", function (row) {
console.log("--- length ----", typeof row); console.log("--- length ----", row);
console.log("--- r-0 ----", row[0]); console.log("--- r-0 ----", row[0]);
if(row[0] === _userEmail){ if(row[0] === _userEmail){
_res = row[2]; _res = row[2];