Skip to content

Commit

Permalink
🐛 added missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
rathijitpapon committed Mar 26, 2024
1 parent 3dc820a commit 26118c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/router/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def query_and_get_answer(
"Orchestrator.query_and_get_answer.router_id clinical trial Entered."
)
try:
sqlResponse = self.clinicalTrialSearch.call_text2sql(search_text=search_text)
sqlResponse = await self.clinicalTrialSearch.call_text2sql(search_text=search_text)
result = str(sqlResponse)
sources = result

Expand All @@ -93,7 +93,7 @@ async def query_and_get_answer(
"Orchestrator.query_and_get_answer.router_id drug_information_choice Entered."
)
try:
cypherResponse = self.drugChemblSearch.call_text2cypher(
cypherResponse = await self.drugChemblSearch.call_text2cypher(
search_text=search_text
)
result = str(cypherResponse)
Expand Down

0 comments on commit 26118c2

Please sign in to comment.