update for id bug 44
This commit is contained in:
@ -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';
|
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) {
|
||||||
console.log("--- r-0 ----", row[0]);
|
console.log("--- r-0 ----", row[0]);
|
||||||
if(row[0] === _userEmail){
|
if(row[0] === _userEmail){
|
||||||
|
|||||||
Reference in New Issue
Block a user