From 2f18df838cdc67b44a5c4f85f5a6216546a19384 Mon Sep 17 00:00:00 2001 From: gor_down Date: Mon, 9 Dec 2024 19:28:48 -0300 Subject: [PATCH] fix --- src/router/indexRouter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;