Skip to content

Commit 078c602

Browse files
committed
archive
1 parent ae40334 commit 078c602

File tree

6 files changed

+424
-42
lines changed

6 files changed

+424
-42
lines changed

backends/advanced/src/advanced_omi_backend/routers/modules/conversation_routes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ async def close_current_conversation(
2828

2929

3030
@router.get("")
31-
async def get_conversations(current_user: User = Depends(current_active_user)):
31+
async def get_conversations(
32+
include_deleted: bool = Query(False, description="Include soft-deleted conversations"),
33+
current_user: User = Depends(current_active_user)
34+
):
3235
"""Get conversations. Admins see all conversations, users see only their own."""
33-
return await conversation_controller.get_conversations(current_user)
36+
return await conversation_controller.get_conversations(current_user, include_deleted)
3437

3538

3639
@router.get("/{conversation_id}")

0 commit comments

Comments
 (0)