refac: rm folder id on chat archive

This commit is contained in:
Timothy Jaeryang Baek 2025-11-23 00:05:27 -05:00
parent e6951e804a
commit 7cf07b7e97

View file

@ -475,6 +475,7 @@ class ChatTable:
with get_db() as db:
chat = db.get(Chat, id)
chat.archived = not chat.archived
chat.folder_id = None
chat.updated_at = int(time.time())
db.commit()
db.refresh(chat)