refac: rm folder id on chat archive
This commit is contained in:
1 parent
e6951e804a
commit
7cf07b7e97
1 file changed
+1
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user