Skip to content

Commit

Permalink
DH-4974 fixed message not updated after resubmit (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
DishenWang2023 committed May 7, 2024
1 parent 3b4b117 commit 0cbb4c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/ai/server/modules/query/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ async def generate_answer(self, query_id: str, user: UserResponse) -> QueryRespo
current_utc_time = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S")
answer = AnswerResponse(**response.json())
updated_request = {
"message": answer.response,
"last_updated": current_utc_time,
"updated_by": ObjectId(user.id),
"answer_id": ObjectId(answer.id),
Expand Down

0 comments on commit 0cbb4c4

Please sign in to comment.