fix
This commit is contained in:
parent
736afb2069
commit
2f18df838c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user