update for id bug 44

This commit is contained in:
Mohamed Nouffer
2022-11-16 15:21:07 +05:30
parent f3d63f3255
commit 3ad2b32667

View File

@ -143,7 +143,7 @@ app.post('/csv', (req, res, next) => {
const path = '/var/www/html/appexe/natnats/23/bin/mobileweb2/resources/database/user_record.csv';
if (fs.existsSync(path)) {
fs.createReadStream(path)
.pipe(parse({ delimiter: ",", from_line: 1 }))
.pipe(parse({ delimiter: ",", from_line: 2 }))
.on("data", function (row) {
console.log("--- r-0 ----", row[0]);
if(row[0] === _userEmail){