fix message sort (#15231)

pull/14262/head
Mars 1 year ago committed by Bharat Ramanathan
parent ed79deccf9
commit 46cb68b27a

@ -70,7 +70,7 @@ class MessageListApi(Resource):
try: try:
return MessageService.pagination_by_first_id( return MessageService.pagination_by_first_id(
app_model, end_user, args["conversation_id"], args["first_id"], args["limit"], "desc" app_model, end_user, args["conversation_id"], args["first_id"], args["limit"]
) )
except services.errors.conversation.ConversationNotExistsError: except services.errors.conversation.ConversationNotExistsError:
raise NotFound("Conversation Not Exists.") raise NotFound("Conversation Not Exists.")

Loading…
Cancel
Save