Skip to content

Commit

Permalink
iwf-401: update activity type name
Browse files Browse the repository at this point in the history
  • Loading branch information
Katie Atrops committed Dec 10, 2024
1 parent 1bed2dc commit a40d0dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/client/cadence/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func getDecisionEventIDByStateOrStateExecutionId(
}
if e.GetEventType() == shared.EventTypeActivityTaskScheduled {
typeName := e.GetActivityTaskScheduledEventAttributes().GetActivityType().GetName()
if strings.Contains(typeName, "StateStart") || strings.Contains(typeName, "StateApiWaitUntil") {
if strings.Contains(typeName, "StateApiExecute") || strings.Contains(typeName, "StateApiWaitUntil") {
var backendType service.BackendType
var input service.StateStartActivityInput
err = converter.FromData(e.GetActivityTaskScheduledEventAttributes().Input, &backendType, &input)
Expand Down
2 changes: 1 addition & 1 deletion service/client/temporal/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func getDecisionEventIDByStateOrStateExecutionId(
}
if e.GetEventType() == enums.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED {
typeName := e.GetActivityTaskScheduledEventAttributes().GetActivityType().GetName()
if strings.Contains(typeName, "StateStart") || strings.Contains(typeName, "StateApiWaitUntil") {
if strings.Contains(typeName, "StateApiExecute") || strings.Contains(typeName, "StateApiWaitUntil") {
var backendType service.BackendType
var input service.StateStartActivityInput
err = converter.FromPayloads(e.GetActivityTaskScheduledEventAttributes().Input, &backendType, &input)
Expand Down

0 comments on commit a40d0dc

Please sign in to comment.