Page MenuHomeDevCentral

When a new project is created, dashboard fails to access project['healthReport'].first['score'].to_i
Closed, ResolvedPublic

Description

Projet parsing method tries to get a non existing project['healthReport'] first item.

Stacktrace

/usr/src/app/tommy.rb in block in parse_incoming_json
        build_score: project['healthReport'].first['score'].to_i,
/usr/src/app/tommy.rb in each
    projects.each do |project|
/usr/src/app/tommy.rb in parse_incoming_json
    projects.each do |project|
...