From 46b2c0b1bf5ef545de73dff22b560bf8067ece9d Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Mon, 2 Sep 2024 17:16:24 +0500 Subject: [PATCH] remove console.log :) --- compose.yaml | 1 + routes/index.js | 2 +- views/stats.ejs | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 470377a..4c476ab 100644 --- a/compose.yaml +++ b/compose.yaml @@ -10,6 +10,7 @@ services: - data:/usr/src/app/data ports: - 6547:6547 + restart: unless-stopped volumes: courses: diff --git a/routes/index.js b/routes/index.js index 128e33b..9fbea4d 100644 --- a/routes/index.js +++ b/routes/index.js @@ -62,7 +62,7 @@ router.get("/", async (req, res) => { try { codeFile = fs.readFileSync(`public/${codeData.path}`, "utf-8"); } catch (e) { - return console.log(`[WARINGN] Not found file for: ${code}`); + return console.log(`[WARNING] Not found file for: ${code}`); } const parsedCodeFile = JSON.parse(codeFile); diff --git a/views/stats.ejs b/views/stats.ejs index 699833f..46d56c0 100644 --- a/views/stats.ejs +++ b/views/stats.ejs @@ -28,7 +28,6 @@ <% include ../components/navbar.html %> - <%- console.log(course) %>