diff --git a/packages/orchestration-service/src/services/memory.js b/packages/orchestration-service/src/services/memory.js index 5165d05..4045605 100644 --- a/packages/orchestration-service/src/services/memory.js +++ b/packages/orchestration-service/src/services/memory.js @@ -218,9 +218,8 @@ async function getEpisodesByEntities(entityIds) { async function getEntityIdsBySession(sessionId){ const res = await fetch(`${BASE_URL}/sessions/${sessionId}/entity-ids`); - if (!res.ok) throw new Error(`Entity-ids-by-session error: ${res.status}`); - const {entityIds} = await res.jaon(); + const { entityIds } = await res.json(); return entityIds; } @@ -250,4 +249,5 @@ module.exports = { getProjectOverviewSummary, searchEpisodes, getEpisodesByEntities, + getEntityIdsBySession, } \ No newline at end of file