fix: scope instructor chat threads to the selected course

This commit is contained in:
2026-08-11 14:19:52 +09:00
parent 5d2c93dd40
commit 4869dbe4c1
5 changed files with 12 additions and 10 deletions
+2 -1
View File
@@ -49,8 +49,9 @@ type ChatThreadsPayload = {
data?: unknown[];
};
export async function listInstructorChatThreads(accessToken: string, week?: number): Promise<InstructorChatThread[]> {
export async function listInstructorChatThreads(accessToken: string, courseId: string, week?: number): Promise<InstructorChatThread[]> {
const params = new URLSearchParams();
if (courseId) params.set('courseId', courseId);
if (week) params.set('week', String(week));
const queryString = params.toString();