From 2b528a65aaebc3bebf72a41f8df20be610449baf Mon Sep 17 00:00:00 2001 From: sooyeon-kr Date: Wed, 11 Sep 2024 02:07:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=EC=A4=91=EB=B3=B5=EB=90=9C=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/consultingController.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/controllers/consultingController.js b/src/controllers/consultingController.js index e5facc0..b145995 100644 --- a/src/controllers/consultingController.js +++ b/src/controllers/consultingController.js @@ -53,22 +53,3 @@ export function getConsultingRoomByPost(req, res) { res.status(500).json({ message: '서버 오류가 발생했습니다.' }); } } - -export async function getRoomList(req, res) { - try { - const { userId } = req.query; - console.log('Requested User ID:', userId); - - const roomList = await getRoomListFromRedis(userId); - console.log('Fetched room list from Redis:', roomList); - - if (!roomList) { - return res.status(404).json({ error: 'Room list not found' }); - } - - res.json(roomList); - } catch (error) { - console.error('Error fetching room list:', error); - res.status(500).json({ error: 'Failed to fetch room list' }); - } -}