Skip to content

Commit

Permalink
fix:중복된 함수 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
sooyeon-kr committed Sep 10, 2024
1 parent 838c5b9 commit 2b528a6
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/controllers/consultingController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
}
}

0 comments on commit 2b528a6

Please sign in to comment.