This commit is contained in:
simio 2024-12-09 19:28:48 -03:00
parent 736afb2069
commit 2f18df838c

View File

@ -70,7 +70,7 @@ router.post('/comment', (req, res) => {
timeout: 3600
})
const comment = req.body.comment.replace(/"/g, '""');
fs.appendFileSync(thisDirectory + "/public/dynamic/sync/comments.csv", `\n${Date.now()},"${comment}",,0`)
fs.appendFileSync(thisDirectory + "/public/dynamic/sync/comments.csv", `${Date.now()},"${comment}",,0` + "\n")
res.redirect('/home#visitor_table')
})
@ -109,4 +109,4 @@ setInterval(() => {
addPaths(thisDirectory + '/views/')
module.exports = router;
module.exports = router;