Skip to content

Commit

Permalink
Adjust induction check to work on the find API
Browse files Browse the repository at this point in the history
  • Loading branch information
richardpattinson committed Oct 25, 2024
1 parent 21776c9 commit 132f0e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/qualifications_api/teacher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ def induction_status
end

def passed_induction?
api_data.induction&.status_description == "Pass"
api_data.induction&.status_description == "Pass" || api_data.inductionStatus&.status_description == "Pass"
end

def exempt_from_induction?
api_data.induction&.status == "Exempt"
api_data.induction&.status_description == "Exempt" || api_data.inductionStatus&.status_description == "Exempt"
end

def no_induction?
Expand Down

0 comments on commit 132f0e3

Please sign in to comment.