mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
refac: rm folder id on chat archive
This commit is contained in:
parent
e6951e804a
commit
7cf07b7e97
1 changed files with 1 additions and 0 deletions
|
|
@ -475,6 +475,7 @@ class ChatTable:
|
||||||
with get_db() as db:
|
with get_db() as db:
|
||||||
chat = db.get(Chat, id)
|
chat = db.get(Chat, id)
|
||||||
chat.archived = not chat.archived
|
chat.archived = not chat.archived
|
||||||
|
chat.folder_id = None
|
||||||
chat.updated_at = int(time.time())
|
chat.updated_at = int(time.time())
|
||||||
db.commit()
|
db.commit()
|
||||||
db.refresh(chat)
|
db.refresh(chat)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue