update for id bug 61
This commit is contained in:
@ -169,12 +169,11 @@ app.post('/csv', (req, res, next) => {
|
|||||||
});
|
});
|
||||||
readable.on("close", () => {
|
readable.on("close", () => {
|
||||||
if(_res === ""){
|
if(_res === ""){
|
||||||
//console.log("--- csvs ---", less_csv);
|
|
||||||
fs.appendFile(path, csv, function (err) {
|
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!');
|
||||||
});
|
});
|
||||||
// writetoFile(csv);
|
// writetoFile(csv);
|
||||||
_res = _jsessionid;
|
_res = _jsessionid;
|
||||||
res.send({'id': _res});
|
res.send({'id': _res});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user