Skip to content

Commit

Permalink
check if user present before lead update
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Sep 17, 2024
1 parent ea2cd76 commit 357b697
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/routines/newflow/create_or_update_salesforce_lead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class CreateOrUpdateSalesforceLead
protected #################

def exec(user:)
return unless user

status.set_job_name(self.class.name)
status.set_job_args(user: user.to_global_id.to_s)

Expand Down

0 comments on commit 357b697

Please sign in to comment.