Skip to content

Commit

Permalink
Check if Salesforce contact exists (missing Contact on dev) (#1248)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Volo <volo@rice.edu>
  • Loading branch information
Dantemss and mwvolo authored Jun 28, 2024
1 parent 1a32566 commit 673f15e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/routines/update_salesforce_assignable_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def call(created_after)
next if contact_id.nil?

contact = OpenStax::Salesforce::Remote::Contact.find(contact_id)
next if contact.nil?

contact.assignable_interest = 'Fully Integrated'
contact.assignable_adoption_date = external_id.min_created_at
contact.save!
Expand Down

0 comments on commit 673f15e

Please sign in to comment.