|
|
@@ -74,10 +74,11 @@ export async function listSpeakingSessionsByConfig(
|
|
|
configId: string,
|
|
|
userIds: string[],
|
|
|
): Promise<ListSessionsByConfigResponse> {
|
|
|
- const params = new URLSearchParams({ configId, userIds: userIds.join(',') })
|
|
|
- const res = await fetch(`${DIALOGUE_BASE}/sessions/by-config?${params}`, {
|
|
|
- method: 'GET',
|
|
|
+ const res = await fetch(`${DIALOGUE_BASE}/sessions/by-config`, {
|
|
|
+ method: 'POST',
|
|
|
+ headers: { 'Content-Type': 'application/json' },
|
|
|
credentials: 'include',
|
|
|
+ body: JSON.stringify({ configId, userIds }),
|
|
|
})
|
|
|
return parse<ListSessionsByConfigResponse>(res)
|
|
|
}
|