fix: rewriting a message is lost on reload due to a non-existent DB column (#1729)

This commit is contained in:
Afonso Coutinho
2026-06-03 05:31:19 +01:00
committed by GitHub
parent d9e6071528
commit 290d398900
2 changed files with 67 additions and 1 deletions
+1 -1
View File
@@ -1266,7 +1266,7 @@ def setup_chat_routes(
db_msg = (
db.query(DBChatMessage)
.filter(DBChatMessage.session_id == session_id, DBChatMessage.role == 'assistant')
.order_by(DBChatMessage.created_at.desc())
.order_by(DBChatMessage.timestamp.desc())
.first()
)
if db_msg: