Skip to content

Commit

Permalink
Only update ptime employee id if its not already set
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomTannenbaum committed Jun 28, 2024
1 parent 1190569 commit 5ac5585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/domain/ptime/update_people_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def run
skills_person ||= Person.new

skills_person.name = ptime_employee_name
skills_person.ptime_employee_id = ptime_employee['id']
skills_person.ptime_employee_id ||= ptime_employee['id']
ptime_employee['attributes'].each do |key, value|
if key.to_sym.in?(ATTRIBUTE_MAPPING.keys)
skills_person[ATTRIBUTE_MAPPING[key.to_sym]] = value
Expand Down

0 comments on commit 5ac5585

Please sign in to comment.