fixing typoes
This commit is contained in:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user