mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
Fix issue where coro was not awaited (#9536)
This commit is contained in:
@@ -157,7 +157,7 @@ async def search_events(
|
|||||||
async def add_event(
|
async def add_event(
|
||||||
request: Request, conversation: ServerConversation = Depends(get_conversation)
|
request: Request, conversation: ServerConversation = Depends(get_conversation)
|
||||||
):
|
):
|
||||||
data = request.json()
|
data = await request.json()
|
||||||
await conversation_manager.send_event_to_conversation(conversation.sid, data)
|
await conversation_manager.send_event_to_conversation(conversation.sid, data)
|
||||||
return JSONResponse({'success': True})
|
return JSONResponse({'success': True})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user