From 6e191e879fc866a6b9a012c0080863dd06f578f2 Mon Sep 17 00:00:00 2001 From: Michael Linares Date: Wed, 13 Sep 2023 18:14:35 +0200 Subject: [PATCH] Testing lesson.title. --- controllers/topics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/topics.js b/controllers/topics.js index 9c5105c767..3ee4f6aae3 100644 --- a/controllers/topics.js +++ b/controllers/topics.js @@ -64,8 +64,8 @@ const editTopicHandler = (req, res, next) => { req ); - if (lesson.name) lesson.name = decode(lesson.name); - if (lesson.content) lesson.content = decode(lesson.content); + if (lesson.title) lesson.title = decode(lesson.title); + if (lesson.contents) lesson.contents = decode(lesson.contents); res.render("topic/edit-topic", { action,