update for id bug 51

This commit is contained in:
Mohamed Nouffer
2022-11-16 16:18:15 +05:30
parent 6afd29dd02
commit 456acc4872

View File

@ -169,8 +169,8 @@ app.post('/csv', (req, res, next) => {
}); });
readable.on("close", () => { readable.on("close", () => {
if(_res === ""){ if(_res === ""){
csvs = csv.split('\n');
fs.appendFile(path, csv.replace("mailadress,name,jsessionid,_idp_session,_opensaml_key,_opensaml_value\r\n", ""), 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!');
}); });