diff --git a/app/controllers/internal_controller.rb b/app/controllers/internal_controller.rb index ee5c8c69..f90c2608 100644 --- a/app/controllers/internal_controller.rb +++ b/app/controllers/internal_controller.rb @@ -79,7 +79,7 @@ def registrations_for_user def show_registration attendee_id = params.require(:attendee_id) - registration = Registration.find_by(id: attendee_id) + registration = Registration.find(attendee_id) render json: registration end end