Skip to content

Commit

Permalink
fix org augmentor
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinSchneider committed Apr 23, 2024
1 parent 9885cbc commit 7c1dfe5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def initialize(org, parsed_event, user_profile_for_event)
end

def augment_organization_properties!
return org if !user_profile_for_event.present? || org_has_any_initial_properties_set?
return org if !org.present? || !user_profile_for_event.present? || org_has_any_initial_properties_set?
AUTO_APPLY_FROM_USER_PROPERTIES_DICT.each do |property_name|
next if !user_profile_for_event.metadata[property_name].present?
org.metadata[property_name] ||= user_profile_for_event.metadata[property_name]
Expand Down

0 comments on commit 7c1dfe5

Please sign in to comment.