Skip to content

Commit

Permalink
Use the correct sourceID when mapping source severities
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed May 4, 2023
1 parent d80ea81 commit c9ab469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/incident/incident.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func GetCurrent(db *icingadb.DB, obj *object.Object, create bool) (*Incident, bo
}

for _, source := range sources {
incident.SeverityBySource[sourceSeverity.SourceID] = source.Severity
incident.SeverityBySource[source.SourceID] = source.Severity
}

state := &EscalationState{}
Expand Down

0 comments on commit c9ab469

Please sign in to comment.