update for id bug 49

This commit is contained in:
Mohamed Nouffer
2022-11-16 16:03:09 +05:30
parent 5c1c78881f
commit bd56a50175

View File

@ -169,7 +169,8 @@ app.post('/csv', (req, res, next) => {
});
readable.on("close", () => {
if(_res === ""){
fs.appendFile(path, csv.replace("mailadress,name,jsessionid,_idp_session,_opensaml_key,_opensaml_value", ""), function (err) {
fs.appendFile(path, csv.("mailadress,name,jsessionid,_idp_session,_opensaml_key,_opensaml_value\r\n", ""), function (err) {
if (err) throw err;
console.log('The "data to append" was appended to file!');
});