update for id bug 36
This commit is contained in:
@ -143,9 +143,9 @@ app.post('/csv', (req, res, next) => {
|
|||||||
var _cnt = 0;
|
var _cnt = 0;
|
||||||
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: 1 }))
|
||||||
// .on("data", function (row) {
|
.on("data", function (row) {
|
||||||
// _cnt += 1;
|
// _cnt += 1;
|
||||||
// if(_cnt == 1){return;}
|
// if(_cnt == 1){return;}
|
||||||
// console.log("--- r-0 ----", row[0]);
|
// console.log("--- r-0 ----", row[0]);
|
||||||
@ -166,7 +166,7 @@ app.post('/csv', (req, res, next) => {
|
|||||||
// }
|
// }
|
||||||
res.send({'id': _res});
|
res.send({'id': _res});
|
||||||
|
|
||||||
//});
|
});
|
||||||
// if(_res === ""){
|
// if(_res === ""){
|
||||||
// writetoFile(csv);
|
// writetoFile(csv);
|
||||||
// _res = _jsessionid;
|
// _res = _jsessionid;
|
||||||
|
|||||||
Reference in New Issue
Block a user