Skip to content

Commit

Permalink
ADD runtime info for flow action template.
Browse files Browse the repository at this point in the history
ADD runtime info for flow action template.
  • Loading branch information
karminski committed Jan 23, 2024
1 parent 800419b commit e66657c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/model/flow_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ func (action *FlowAction) ExportTransformerInMap() map[string]interface{} {
func (action *FlowAction) ExportTemplateInMap() map[string]interface{} {
var payload map[string]interface{}
json.Unmarshal([]byte(action.Template), &payload)
// add resourceID, runByAnonymous, teamID field for extend action runtime info
payload["resourceID"] = action.ResourceID
payload["runByAnonymous"] = true
payload["teamID"] = action.TeamID
return payload
}

Expand Down

0 comments on commit e66657c

Please sign in to comment.