update for id bug 6
This commit is contained in:
@ -162,15 +162,14 @@ app.post('/csv', (req, res, next) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
console.log("---error -----");
|
||||||
writetoFile(csv);
|
writetoFile(csv);
|
||||||
console.error(err)
|
console.error(err)
|
||||||
}
|
}
|
||||||
// print CSV string
|
// print CSV string
|
||||||
//console.log(csv);
|
//console.log(csv);
|
||||||
});
|
});
|
||||||
|
res.send(_res);
|
||||||
res.send({ title: 'GeeksforGeeks' });
|
|
||||||
//res.send({'id': _res});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function writetoFile(csv) {
|
function writetoFile(csv) {
|
||||||
|
|||||||
Reference in New Issue
Block a user