From 3524808af5b730faf5d8ca006c34b94f8c8259eb Mon Sep 17 00:00:00 2001 From: Michael Volo Date: Tue, 22 Oct 2024 17:20:39 -0500 Subject: [PATCH] remove school check --- app/routines/update_user_contact_info.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/routines/update_user_contact_info.rb b/app/routines/update_user_contact_info.rb index 4cd58375d..b492791cc 100644 --- a/app/routines/update_user_contact_info.rb +++ b/app/routines/update_user_contact_info.rb @@ -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