Skip to content

Commit

Permalink
connection _check
Browse files Browse the repository at this point in the history
  • Loading branch information
prakriti-solankey authored and kartikpersistent committed Aug 20, 2024
1 parent 477fda0 commit bacbcfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ async def clear_chat_bot(uri=Form(),userName=Form(), password=Form(), database=F
async def connect(uri=Form(), userName=Form(), password=Form(), database=Form()):
try:
graph = create_graph_database_connection(uri, userName, password, database)
result = await asyncio.to_thread(connection_check, graph)
result = await asyncio.to_thread(connection_check_and_get_vector_dimensions, graph)
json_obj = {'api_name':'connect','db_url':uri,'status':result, 'count':1, 'logging_time': formatted_time(datetime.now(timezone.utc))}
logger.log_struct(json_obj)
return create_api_response('Success',message=result)
Expand Down

0 comments on commit bacbcfc

Please sign in to comment.