From b321f2cfdd8e4d2eaabeab1c1e80a83ef576d51c Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Tue, 26 Jan 2021 23:04:15 +0100 Subject: [PATCH] Fixed import location for redis. --- api/controllers/chatController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/controllers/chatController.js b/api/controllers/chatController.js index fb3d8b6..b680cb7 100644 --- a/api/controllers/chatController.js +++ b/api/controllers/chatController.js @@ -1,5 +1,6 @@ const path = require("path"); -const { history, clearHistory } = require(path.join(__dirname + "/../api/redis")); +const { history, clearHistory } = require(path.join(__dirname + "/../redis")); +console.log("loading chat"); const getAllHistory = (req, res) => { let { page, limit } = req.query;