Skip to content

Commit

Permalink
Tweak comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jul 23, 2024
1 parent 0cc59e0 commit 219b632
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flows/actions/open_ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ func NewOpenTicket(uuid flows.ActionUUID, topic *assets.TopicReference, body str
func (a *OpenTicketAction) Execute(run flows.Run, step flows.Step, logModifier flows.ModifierCallback, logEvent flows.EventCallback) error {
sa := run.Session().Assets()

// get topic or fallback to default
var topic *flows.Topic
if a.Topic != nil {
topic = sa.Topics().Get(a.Topic.UUID)
} else {
topic = sa.Topics().FindByName("General") // TODO remove when editor adds topics
topic = sa.Topics().FindByName("General")
}

var assignee *flows.User
if a.Assignee != nil {
assignee = resolveUser(run, a.Assignee, logEvent)
Expand Down

0 comments on commit 219b632

Please sign in to comment.