Skip to content

Commit 1dab4a7

Browse files
limboinfxerrors
authored andcommitted
fix: 修复 dashboard_router 中 ConversationManager 方法缺少 await 的问题
1 parent fd9dc40 commit 1dab4a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/routers/dashboard_router.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ async def get_conversation_detail(
164164
"""Get conversation detail (Admin only)"""
165165
try:
166166
conv_manager = ConversationManager(db)
167-
conversation = conv_manager.get_conversation_by_thread_id(thread_id)
167+
conversation = await conv_manager.get_conversation_by_thread_id(thread_id)
168168

169169
if not conversation:
170170
raise HTTPException(status_code=404, detail="Conversation not found")
171171

172172
# Get messages and stats
173-
messages = conv_manager.get_messages(conversation.id)
174-
stats = conv_manager.get_stats(conversation.id)
173+
messages = await conv_manager.get_messages(conversation.id)
174+
stats = await conv_manager.get_stats(conversation.id)
175175

176176
# Format messages
177177
message_list = []

0 commit comments

Comments
 (0)