update for id bug 38
This commit is contained in:
@ -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;}
|
||||||
|
|||||||
Reference in New Issue
Block a user