diff --git a/src/router/indexRouter.js b/src/router/indexRouter.js index 682e3e8..6096eda 100644 --- a/src/router/indexRouter.js +++ b/src/router/indexRouter.js @@ -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; \ No newline at end of file +module.exports = router;