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