update for id bug 38

This commit is contained in:
Mohamed Nouffer
2022-11-16 14:57:35 +05:30
parent 58a733d69f
commit 4226cc0b9f

View File

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