Skip to content

Commit

Permalink
fix qualification being checked if event_ids are not present
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Nov 8, 2024
1 parent ee6b5fe commit cbdfb4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/services/registration_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def validate_qualifications!
return unless @competition_info.enforces_qualifications?
# TODO: Read the request payload in as an object, and handle cases where expected values aren't found
event_ids = @request.dig('competing', 'event_ids')
return if event_ids.nil?

unqualified_events = event_ids.filter_map do |event|
qualification = @competition_info.get_qualification_for(event)
Expand Down

0 comments on commit cbdfb4a

Please sign in to comment.