Skip to content

Commit

Permalink
Fix attrs picking
Browse files Browse the repository at this point in the history
  • Loading branch information
pskl committed Oct 16, 2024
1 parent 3e7d907 commit e2ce8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/student/mappers/sygne.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def map_schooling!(classe, student, entry)
end

def map_schooling_attributes(entry)
schooling_mapper.new.call(entry).values_at(:status, :start_date)
schooling_mapper.new.call(entry).slice(:status, :start_date)
rescue StandardError => e
raise SchoolingParsingError.new, "Schooling parsing failure for #{uai}: #{e.message}"
end
Expand Down

0 comments on commit e2ce8a7

Please sign in to comment.