Skip to content

Commit

Permalink
use find_by_id for multiple events
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 8, 2019
1 parent 7f43d82 commit b02d200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def index
if params[:id].present?
response = Event.find_by_id(params[:id])
elsif params[:ids].present?
response = Event.find_by_ids(params[:ids], page: page, sort: sort)
response = Event.find_by_id(params[:ids], page: page, sort: sort)
else
response = Event.query(params[:query],
subj_id: params[:subj_id],
Expand Down

0 comments on commit b02d200

Please sign in to comment.