Skip to content

Commit 4d55f1c

Browse files
committed
Add missing room id extraction
1 parent 436888a commit 4d55f1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

collab-service/app/controller/collab-controller.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ export async function getRoomChatHistory(req, res) {
7676

7777
// Get QuestionId from the room based on the roomId
7878
export async function getQuestionId(req, res) {
79+
const { roomId } = req.params;
80+
81+
if (!roomId) {
82+
return res.status(400).json({ error: "Room ID is required" });
83+
}
7984
const questionId = await getQuestionIdByRoomId(roomId);
8085

8186
if (questionId) {

0 commit comments

Comments
 (0)