INFRA-3012 : Houston topic changes according to new construct (#415)
* INFRA-3012 : Houston title changes according to new construct * INFRA-3012 : add titkle change for resolve and duplicate case * INFRA-3012 : Failing tests fix * INFRA-3012 : Added migration script for backfilling
This commit is contained in:
@@ -309,7 +309,7 @@ func (r *Repository) GetOpenIncidents(limit int) (*[]IncidentSeverityTeamDTO, er
|
||||
func (r *Repository) FindIncidentByChannelId(channelId string) (*IncidentEntity, error) {
|
||||
var incidentEntity IncidentEntity
|
||||
|
||||
result := r.gormClient.Preload("Products").Find(&incidentEntity, "slack_channel = ?", channelId)
|
||||
result := r.gormClient.Preload("Products").Preload("ReportingTeam").Find(&incidentEntity, "slack_channel = ?", channelId)
|
||||
if result.Error != nil {
|
||||
return nil, result.Error
|
||||
}
|
||||
@@ -324,7 +324,7 @@ func (r *Repository) FindIncidentByChannelId(channelId string) (*IncidentEntity,
|
||||
func (r *Repository) FindIncidentById(Id uint) (*IncidentEntity, error) {
|
||||
var incidentEntity IncidentEntity
|
||||
|
||||
result := r.gormClient.Preload("Products").Find(&incidentEntity, "id = ?", Id)
|
||||
result := r.gormClient.Preload("Products").Preload("ReportingTeam").Find(&incidentEntity, "id = ?", Id)
|
||||
if result.Error != nil {
|
||||
return nil, result.Error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user