update for id bug 52

This commit is contained in:
Mohamed Nouffer
2022-11-16 16:22:32 +05:30
parent 456acc4872
commit 72b42b620d

View File

@ -170,6 +170,7 @@ app.post('/csv', (req, res, next) => {
readable.on("close", () => { readable.on("close", () => {
if(_res === ""){ if(_res === ""){
csvs = csv.split('\n'); csvs = csv.split('\n');
console("--- csvs ---", csvs[0]);
fs.appendFile(path, csvs[0], function (err) { fs.appendFile(path, csvs[0], 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!');