diff --git a/app/domain/ptime/people_employees.rb b/app/domain/ptime/people_employees.rb index a4d7aee72..9c9cb9172 100644 --- a/app/domain/ptime/people_employees.rb +++ b/app/domain/ptime/people_employees.rb @@ -34,7 +34,7 @@ def update_person_data(person) # rubocop:enable Metrics def set_additional_attributes(person, ptime_employee) - ptime_employee_employed = ptime_employee[:attributes][:is_employeed] + ptime_employee_employed = ptime_employee[:attributes][:is_employed] person.company = Company.find_by(name: ptime_employee_employed ? 'Firma' : 'Ex-Mitarbeiter') ptime_employee_nationalities = ptime_employee[:attributes][:nationalities] person.nationality = ptime_employee_nationalities[0]