Skip to content

Commit 19ebce4

Browse files
committed
fix(#196): Use get_endpoint_by_topic_id in ai_execute for test mocking
1 parent 3c1c811 commit 19ebce4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

coaching/src/api/routes/ai_execute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ async def execute_ai(
148148
)
149149

150150
# Step 1: Validate topic exists and is active
151-
endpoint = get_topic_by_topic_id(request.topic_id)
151+
endpoint = get_endpoint_by_topic_id(request.topic_id)
152152
if endpoint is None:
153153
logger.warning("ai_execute.topic_not_found", topic_id=request.topic_id)
154154
raise HTTPException(

0 commit comments

Comments
 (0)