This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-26 23:55:37 -04:00
1 parent e5a08d5220
commit 8ddf119570
4 files changed
+24 -4

No files matched your search

+5 -2
View File
@@ -256,11 +256,14 @@ async def get_session_user_chat_list(
@router.post('/read')
async def mark_root_chats_read_by_user_id(
async def mark_chats_read_by_user_id(
user=Depends(get_verified_user),
db: AsyncSession = Depends(get_async_session),
):
return {'updated_count': await Chats.mark_root_chats_read_by_user_id(user.id, db=db)}
return {
'updated_count': await Chats.mark_chats_read_by_user_id(user.id, db=db),
'folder_unread_counts': await get_folder_unread_counts(user.id, db=db),
}
############################