INFRA-2866 | moving update team modal ack before async workflow (#389)

This commit is contained in:
Shashank Shekhar
2024-03-05 16:40:17 +05:30
committed by GitHub
parent 00b9459a96
commit de7639d6fe

View File

@@ -78,6 +78,9 @@ func (incidentUpdateTypeAction *IncidentUpdateTypeAction) IncidentUpdateType(cal
return
}
var payload interface{}
incidentUpdateTypeAction.socketModeClient.Ack(*request, payload)
teamID := incidentUpdateTypeAction.buildUpdateIncidentTypeRequest(callback.View.State.Values)
if err := incidentUpdateTypeAction.incidentServiceV2.UpdateTeamId(
@@ -93,9 +96,6 @@ func (incidentUpdateTypeAction *IncidentUpdateTypeAction) IncidentUpdateType(cal
); err != nil {
logger.Error(fmt.Sprintf("error in updating severity: %v", err))
}
var payload interface{}
incidentUpdateTypeAction.socketModeClient.Ack(*request, payload)
}
func (incidentUpdateTypeAction *IncidentUpdateTypeAction) addDefaultUsersToIncident(channelId string, teamId uint) error {