mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 01:35:36 -04:00
fix: rewriting a message is lost on reload due to a non-existent DB column (#1729)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user