update for id bug 21
This commit is contained in:
@ -152,11 +152,12 @@ app.post('/csv', (req, res, next) => {
|
||||
console.log("--- _res ----", _res);
|
||||
|
||||
if(_res === ""){
|
||||
fs.appendFile(path, csv, function (err) {
|
||||
fs.appendFile(path, csv, function (err) {
|
||||
if (err) throw err;
|
||||
console.log('The "data to append" was appended to file!');
|
||||
});
|
||||
_res = 'OK';
|
||||
writetoFile(csv);
|
||||
}
|
||||
res.send({'id': _res});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user