update for id bug 7
This commit is contained in:
@ -158,6 +158,7 @@ app.post('/csv', (req, res, next) => {
|
||||
});
|
||||
_res = 'OK';
|
||||
}
|
||||
res.send({'id': _res});
|
||||
|
||||
});
|
||||
}
|
||||
@ -165,12 +166,13 @@ app.post('/csv', (req, res, next) => {
|
||||
console.log("---error -----");
|
||||
writetoFile(csv);
|
||||
console.error(err)
|
||||
res.send({'erro': err});
|
||||
}
|
||||
// print CSV string
|
||||
//console.log(csv);
|
||||
});
|
||||
console.log("---sending res -----");
|
||||
res.send({'id': _res});
|
||||
//res.send({'id': _res});
|
||||
});
|
||||
|
||||
function writetoFile(csv) {
|
||||
|
||||
Reference in New Issue
Block a user