Skip to content

Commit

Permalink
Update kb entry naming on naming data client get
Browse files Browse the repository at this point in the history
  • Loading branch information
spong committed May 17, 2024
1 parent 0038901 commit 7209e09
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export const getKnowledgeBaseEntry = async ({
index: knowledgeBaseIndex,
seq_no_primary_term: true,
});
const conversation = transformESSearchToKnowledgeBaseEntry(response);
return conversation[0] ?? null;
const knowledgeBaseEntry = transformESSearchToKnowledgeBaseEntry(response);
return knowledgeBaseEntry[0] ?? null;
} catch (err) {
logger.error(`Error fetching conversation: ${err} with id: ${id}`);
logger.error(`Error fetching knowledge base entry: ${err} with id: ${id}`);
throw err;
}
};

0 comments on commit 7209e09

Please sign in to comment.