mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
fix: Archive All Chats takes chats out of their folders, so deleting a folder no longer deletes them (#32647)
This commit is contained in:
parent
c7e159bdd6
commit
97f5c4e973
1 changed files with 1 additions and 1 deletions
|
|
@ -1565,7 +1565,7 @@ class ChatTable:
|
|||
async def archive_all_chats_by_user_id(self, user_id: str, db: AsyncSession | None = None) -> bool:
|
||||
try:
|
||||
async with get_async_db_context(db) as session:
|
||||
await session.execute(update(Chat).filter_by(user_id=user_id).values(archived=True))
|
||||
await session.execute(update(Chat).filter_by(user_id=user_id).values(archived=True, folder_id=None))
|
||||
await session.commit()
|
||||
return True
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue