From 6bbf7128092622434dcfee34493c6e41a007c186 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 18 Aug 2020 09:51:11 +0200 Subject: [PATCH] Fix non-updating guide titles --- routes/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/main.js b/routes/main.js index c0d094d..f9c5d15 100644 --- a/routes/main.js +++ b/routes/main.js @@ -30,7 +30,6 @@ more information on this, and how to apply and follow the GNU AGPL, see { }); router.get('/guides/:guideId', (req, res) => { + const env = {}; + let data = fs.readFileSync(`./guides/${req.params.guideId}.md`, "utf8", (err, data) => { if (err) throw err; return data;