This commit is contained in:
Classic298
2025-12-30 12:15:31 +04:00
committed by GitHub
parent fe3047d53c
commit c02451178c
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -682,10 +682,8 @@ async def get_user_pinned_chats(
async def get_user_chats(
user=Depends(get_verified_user), db: Session = Depends(get_session)
):
return [
ChatResponse(**chat.model_dump())
for chat in Chats.get_chats_by_user_id(user.id, db=db)
]
result = Chats.get_chats_by_user_id(user.id, db=db)
return [ChatResponse(**chat.model_dump()) for chat in result.items]
############################