Skip to content

Commit

Permalink
Fix for updating search vectors on edit (#3382)
Browse files Browse the repository at this point in the history
Close #3377
  • Loading branch information
olliestanley committed Jun 11, 2023
1 parent 9070e31 commit 8ec4ebc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/oasst_backend/prompt_repository.py
Expand Up @@ -356,6 +356,7 @@ def revise_message(self, message_id: UUID, new_content: str):
updated_message_data = {
"payload": PayloadContainer(payload=db_payload.MessagePayload(text=new_content)),
"edited": True,
"search_vector": None,
}

query = update(Message).where(Message.id == message_id).values(**updated_message_data)
Expand Down

0 comments on commit 8ec4ebc

Please sign in to comment.