Major bug fix

This commit is contained in:
AndrewTrieu
2023-03-10 16:41:57 +02:00
parent 4c8e7e8588
commit 0fab2411ee
19 changed files with 965 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ const addTopic = async ({ request, response, render, state }) => {
if (!admin) {
topicData.errors = { admin: { error: "You are not an admin!" } };
}
topicData.allTopics = await topicService.getAllTopics();
topicData.topics = await topicService.getAllTopics();
render("topics.eta", topicData);
} else {
await topicService.addTopic(userId, topicData.name);