Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wuminzhe committed May 11, 2024
1 parent 7afd5ef commit 1b109b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/messages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,16 @@ def timespent
end

def sent_by
msgport_from = params[:msgport_from].downcase

respond_to do |format|
format.html {
@messages = Message.where(msgport_from: params[:msgport_from]).order(block_timestamp: :desc).page(params[:page]).per(25)
@messages = Message.where(msgport_from: msgport_from).order(block_timestamp: :desc).page(params[:page]).per(25)
@messages_count = @messages.count
render :index
}
format.json {
@messages = Message.where(msgport_from: params[:msgport_from]).order(block_timestamp: :desc)
@messages = Message.where(msgport_from: msgport_from).order(block_timestamp: :desc)

render json: @messages
}
Expand Down

0 comments on commit 1b109b5

Please sign in to comment.