fix for 404 memory.js error
This commit is contained in:
@@ -25,7 +25,7 @@ async function createSession(externalId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getRecentEpisodes(sessionId, limit = 10) {
|
async function getRecentEpisodes(sessionId, limit = 10) {
|
||||||
const res = await fetch(`${BASE_URL}/sessions/${sessionId}/episodes/recent?limit=${limit}`);
|
const res = await fetch(`${BASE_URL}/sessions/${sessionId}/episodes?limit=${limit}`);
|
||||||
if (!res.ok) throw new Error(`Failed to fetch episodes: ${res.status} ${res.statusText}`);
|
if (!res.ok) throw new Error(`Failed to fetch episodes: ${res.status} ${res.statusText}`);
|
||||||
return res.json();
|
return res.json();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user