fix json error3
This commit is contained in:
@ -141,7 +141,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) {
|
||||||
for(r in row){
|
for(r in row){
|
||||||
if(r[0] === _userEmail){
|
if(r[0] === _userEmail){
|
||||||
|
|||||||
Reference in New Issue
Block a user