Skip to content

Commit

Permalink
revert str casting
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Oct 21, 2024
1 parent 937114d commit 1be0378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routines/newflow/create_or_update_salesforce_lead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def exec(user:)


if user.salesforce_lead_id
lead = OpenStax::Salesforce::Remote::Lead.find_by(email: "#{user.best_email_address_for_salesforce}")
lead = OpenStax::Salesforce::Remote::Lead.find_by(email: user.best_email_address_for_salesforce)
else
lead = OpenStax::Salesforce::Remote::Lead.new(email: "#{user.best_email_address_for_salesforce}")
lead = OpenStax::Salesforce::Remote::Lead.new(email: user.best_email_address_for_salesforce)
end

lead.first_name = user.first_name
Expand Down

0 comments on commit 1be0378

Please sign in to comment.