Skip to content

Commit 673f15e

Browse files
Dantemssmwvolo
andauthored
Check if Salesforce contact exists (missing Contact on dev) (#1248)
Co-authored-by: Michael Volo <volo@rice.edu>
1 parent 1a32566 commit 673f15e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/routines/update_salesforce_assignable_fields.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def call(created_after)
1717
next if contact_id.nil?
1818

1919
contact = OpenStax::Salesforce::Remote::Contact.find(contact_id)
20+
next if contact.nil?
21+
2022
contact.assignable_interest = 'Fully Integrated'
2123
contact.assignable_adoption_date = external_id.min_created_at
2224
contact.save!

0 commit comments

Comments
 (0)