Skip to content

Commit

Permalink
Merge pull request #436 from i-dot-ai/bugfix/order-chat-by-date
Browse files Browse the repository at this point in the history
Order chat by date
  • Loading branch information
252afh authored May 22, 2024
2 parents ce662c7 + 32bd41d commit ca3b4ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_app/redbox_app/redbox_core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def chats_view(request: HttpRequest, chat_id: uuid = None):

messages = []
if chat_id:
messages = ChatMessage.objects.filter(chat_history__id=chat_id)
messages = ChatMessage.objects.filter(chat_history__id=chat_id).order_by("created_at")
endpoint = URL.build(scheme="ws", host=request.get_host(), path=r"/ws/chat/")
context = {
"chat_id": chat_id,
Expand Down

0 comments on commit ca3b4ec

Please sign in to comment.