update for id bug 31

This commit is contained in:
Mohamed Nouffer
2022-11-16 14:31:11 +05:30
parent 1b71694761
commit 9c14157c64

View File

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