Skip to content

Commit

Permalink
remove school check
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Oct 22, 2024
1 parent 7bfd9bf commit 3524808
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/routines/update_user_contact_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,6 @@ def call
:other_school_type
end

if school != user.school.salesforce_id
user.school = School.find_by(salesforce_id: user.school.salesforce_id)
user.save
user.reload
# temporarily log these changes to see how frequent they are
Sentry.capture_message("User #{user.id} has a mismatched school id (Salesforce: #{sf_contact.school_id}, Accounts: #{user.school.salesforce_id})")
end
sf_school = sf_contact.school
user.school_location = case sf_school&.school_location
when *DOMESTIC_SCHOOL_LOCATIONS
Expand Down

0 comments on commit 3524808

Please sign in to comment.